RecordsetClone error

  • Thread starter Thread starter RD
  • Start date Start date
R

RD

The code below is giving me, "3070: The Microsoft Jet database engine does not
recognize 'testID' as a valid field name or expression."

Set rs = Me.RecordsetClone
rs.FindFirst "Wkr_ID = " & Me!Wkr_ID

I've done this before. I figure I must just be tired and I'm not seeing WTF I'm
doing wrong.

Time to shut down and head to my local Irish pub.

Thanks for any help,
RD
 
RD said:
The code below is giving me, "3070: The Microsoft Jet database engine
does not recognize 'testID' as a valid field name or expression."

Set rs = Me.RecordsetClone
rs.FindFirst "Wkr_ID = " & Me!Wkr_ID

I've done this before. I figure I must just be tired and I'm not
seeing WTF I'm doing wrong.

Time to shut down and head to my local Irish pub.

Just on the off chance you haven't headed out yet ...

If the error is really coming on that line, it implied that the value of
Me!Wkr_ID is the string "testID". If that's a valid value for the
Wkr_ID field, then that's a text field and the value you're searching
for must be enclosed in quotes. Try:

rs.FindFirst "Wkr_ID = '" & Me!Wkr_ID & "'"

That places single-quotes (') around the value being sought.
 
Just on the off chance you haven't headed out yet ...

If the error is really coming on that line, it implied that the value of
Me!Wkr_ID is the string "testID". If that's a valid value for the
Wkr_ID field, then that's a text field and the value you're searching
for must be enclosed in quotes. Try:

rs.FindFirst "Wkr_ID = '" & Me!Wkr_ID & "'"

That places single-quotes (') around the value being sought.

Ah! I guess I *was* tired. That did the trick. Frankly, I'd forgotten about
that particular form till this morning.

Thanks,
RD
 

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

Similar Threads

Duplicate record checking 1
error on recordset code 5
Combo Box not working 2
Recordsetclone findfirst error. I am stumped!! 18
Error 3070 3
error on recordset 4
error in recordset code 1
Runtime Error 3070 7

Back
Top