Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Findfirst Problem 2

Status
Not open for further replies.

desperatemeasures

Technical User
Sep 10, 2002
50
0
0
US
Hi

Can anyone help me with the following problem I am having using firdfirst. My code is the following:

.FindFirst "[Order Catalogue Id] = '" & OrderCat & "'"

In the table, [Order Catalogue Id] is an autonumber
OrderCat is an integer variable I have declared and gets its value from the form:

OrderCat = Me.[Order Catalogue Id]

It gives me the error "Run Time Error "3464" Data type mismatch in criteria expression"

I am not sure why I am getting the error.
 
Hi

.FindFirst "[Order Catalogue Id] = " & OrderCat

If the column is numeric, you do not need the quotes, these are only needed for strings

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top