findfirst data type error

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top