Why does this string keep saying "Variable not Defined?"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm afraid I can't see anything wrong with this.

MySQL = ("SELECT JusticeName FROM tblJusticenames WHERE" &
rs.Fields("JudgeId") & "=" & TblJusticeNames.JusticeID)

Thank you very much for your help.
 
Joanne

Where did the "rs.Fields("JudgeID")" come from?

The SQL statement says to get the contents of the field [JusticeName] from
the table named "tblJusticenames" when the ??recordset (?what recordset)
field of [JudgeID] is somehow (don't use "=") related to field called
[JusticID] in the table "tblJusticeNames". This doesn't make much sense.

Now, what are you TRYING to do?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top