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!

Invalid Bracketing

Status
Not open for further replies.

jdwm2310

Technical User
Jul 26, 2001
396
US
Hi Guys,

I get a invalid bracketing of name. Could you please help.thanks
stLinkCriteria = "[Employee Table (test).Employee Information]=" & "'" & Me![Employee Information] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly

Exit_Command8_Click:
Exit Sub

Err_Command8_Click:
MsgBox Err.Description
Resume Exit_Command8_Click

End Sub
 
Hi!

You need brackets around the table name and field name separately:

stLinkCriteria = "[Employee Table (test)].[Employee Information]= '" & Me![Employee Information] & "'"

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top