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

populating unbound text boxes

Status
Not open for further replies.

shawndu

Programmer
Nov 20, 2001
5
CA
I'm trying to populate each unbound textbox on my form. i've done something similar before but I can't remember how I did it! Each one needs to have different parameters in its query. i've tried putting the select statement in the control source of each one but I get the #Name? every time.I've tried multiple syntax variations but none seem to work! Am I simply putting the select statement in the wrong place?

Any suggestions on syntax or anything else would be helpful.
 
Shawndu,

Take a look at DLookup in Help. It sounds like that is what you're after.

If not, post back with some more specifics: examples of select statements, when you want the textboxes populated, etc.


HTH John

Use what you have,
Learn what you can,
Create what you need.
 
DLookup works great when there is only one parameter but I need to include several. For example I need to retrieve a name based on date, time, and employee assigned to that person.(i'm creating a monthly/daily scheduler for appointments)Text boxes need to be populated on the opening of the form.

 
Shawndu,

DLookUp allows for multiple criteria parameters using 'AND' in the where portion of the function.



HTH John

Use what you have,
Learn what you can,
Create what you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top