Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Criteria Question?

Status
Not open for further replies.

kutibo

MIS
Dec 19, 2000
22
US
How do I add another field to the stLinkCriteria section without getting an error? Thanks for your help.

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ADJ"

stLinkCriteria = "[fldAcct]=" & Me![fldAcct]
DoCmd.OpenForm stDocName, , , stLinkCriteria
 
stLinkCriteria = "[fldAcct]=" & Me![fldAcct]" and [yourfield] = " & additionalcriteria
think if it as a where statement with out the where
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top