datatype mismatch - compare text to integer

L

liz

Dim iJobID As Integer

rstJobList.FindFirst "JobID = " & iJobID

JobID (in rstJobList) is a Text field.
Hate all this quotation marks thing - it always gets me muddled up - any
help would be much appreicated!
 
R

ruralguy via AccessMonster.com

rstJobList.FindFirst "JobID = '" & iJobID & "'"
Dim iJobID As Integer

rstJobList.FindFirst "JobID = " & iJobID

JobID (in rstJobList) is a Text field.
Hate all this quotation marks thing - it always gets me muddled up - any
help would be much appreicated!
 

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

Top