Acess: VB button text

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

[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
 

[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?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Members online

Top