findfirst data type error

G

Guest

I am getting a type mismatch error with the [date type] part (have commented
it out & the first bit works!).


tblList2.FindFirst "[Job ID] = " & lstCheck.Column(0) And " [Date Type] = "
& DateType

[Date Type] in the table is stored as a Number.
DateType is defined as an Integer.

Not sure of the syntax.
 
G

George Nicholson

Your AND should be inside the quotes, and you were missing a connecting
ampersand (&):
tblList2.FindFirst "[Job ID] = " & lstCheck.Column(0) & "And [Date Type] =
"
& DateType

HTH,

liz said:
I am getting a type mismatch error with the [date type] part (have
commented
it out & the first bit works!).


tblList2.FindFirst "[Job ID] = " & lstCheck.Column(0) And " [Date Type] =
"
& DateType

[Date Type] in the table is stored as a Number.
DateType is defined as an Integer.

Not sure of the syntax.
 

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