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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing text box input to DLookUp

Status
Not open for further replies.

MachineBoy

Programmer
Feb 18, 2002
10
0
0
US
How would I pass input from the user entered into a text box as part of a parameter query in a DLookup statement
ex -

code
If IsNull(DLookup("[Project]", "Query5Act", "[Project] = 'strText'")) Then
/ code

where Project is a field in a table and strText would be the particular Project that the user entered into a text box as part of the parameter query ("Query5Act")?
 
If IsNull(DLookup("[Project]", "Query5Act", "[Project] = " & txtInput)) Then

txtInput is the name of the Project input box on your form "The Key, The Whole Key, and Nothing But The Key, So Help Me Codd!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top