1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Acess: VB button text

Discussion in 'Business Applications' started by [email protected], Sep 29, 2008.

Thread Status:
Not open for further replies.
  1. cb@chrisb.eu

    [email protected] Thread Starter

    Joined:
    Jul 1, 2008
    Messages:
    24
    Hi. This is on the Customer (Patient) Details form, designed to call up the patient's blood test details by matching hospital numbers. Only trouble is, it doesn't. It pulls up only the blood test details from the first record in the database, and puts that in as a form in front of any correct form. Any idea why?

    'Button VB text:'
    Private Sub Blood_Test_Form_Click()
    DoCmd.OpenForm "PD HI Blood Test", , , , acFormEdit, , "Me.Hospital_No_"
    [Forms]![PD HI Blood Test]![Hospital No] = ([Forms]![Patient Details Form]![Hospital No])
    [Forms]![PD HI Blood Test].FilterOn = True
    End Sub

    'Destination form (PI HI Blood Test) properties:'
    Filter: [Hospital No]=Forms![Patient Details Form]![Hospital No]
    Allow filters: Yes
     
  2. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    Hello, I could have sworn that I had that working for you.
     
  3. cb@chrisb.eu

    [email protected] Thread Starter

    Joined:
    Jul 1, 2008
    Messages:
    24
    Hi Tony. Highly probable, but it's reverted. Can you see anything in the current vb text that should or shouldn't be there?
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/754506

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice