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

Run-Time Error3705

Status
Not open for further replies.

Malta393

Technical User
Apr 8, 2002
18
0
0
EU
I have inpt the following code in order to get a conbo box selection to complet two other textboxes on my form
Privat Sub First_NameTxtbox_Afterupdate
SurnameTxtbox=DLookup("[LastName]","ManagerTable","First_Name = "&First_NameTxtbox)
DoCmd.Close acTable,"Manager"
CostCentreNoTxtbox=DLookup("CostCentreNo","ManagerTable","First_Name = & First_NameTxtbox)

I can't seem to get it to work-Can anyone help I'm A COMPLETE NOVICE AT THIS.[DAZED]
 
Private Sub First_NameTxtbox_Afterupdate()
SurnameTxtbox=DLookup("LastName","ManagerTable","First_Name = '" & me.First_NameTxtbox & "'")

'DoCmd.Close acTable,"Manager" Wrong command string because your table isn't opened, I think

CostCentreNoTxtbox=DLookup("CostCentreNo","ManagerTable","First_Name = '" & me.First_NameTxtbox & "'")

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top