Multiple Where conditions in openform

lxh

Registered User.
Local time
Today, 08:43
Joined
Feb 26, 2004
Messages
43
Hi all

I need to open a form with both two necessary conditions, ie, the project number needs to be a cetain value and the bank number needs to be a certain value. Is is possible to do something like:


Code:
DoCmd.OpenForm FormFocus, acNormal, , (("TeamMemberID=" & frmCallingForm.TeammemberID) And ("ProjectDetailsID=" & frmCallingForm.ProjectDetailsID)), acFormEdit, acWindowNormal

thanks in advance
Lex
 
The openform line should read...

Hey There - I worked out what i was after - thanks for looking

the above line should have read:

Code:
DoCmd.OpenForm FormFocus, acNormal, , "TeamMemberID=" & frmCallingForm.TeammemberID & "AND ProjectDetailsID = " & frmCallingForm.ProjectDetailsID, acFormEdit, acWindowNormal

Thanks
Lex
 

Users who are viewing this thread

Back
Top Bottom