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!

Auto Increment field -- What TYPE?

Status
Not open for further replies.

oraclec

Programmer
Dec 8, 2002
16
0
0
SG
Hi,

My SQL query from an ASP page:

query = "UPDATE Loan SET DateOut = '"&Date&"', TimeOut = '"&Time&"', CheckedOut = Yes WHERE LID = '"&lid&"'"

resulted in a data type mismatch error.

My column LID is an auto increment field. I set it to be the primary key.

What is the data type of an auto increment field? I tried casting lid with CInt instead of a string, but had the same error.

Can anyone help?

Thanks!

|*Oraclec*|

"Information is not knowledge, not can it grant wisdom or be put to use until it is properly applied."
 
Assuming you mean an 'Autonumber' field: they can be Long Integer or Replication ID. Help explains the difference if you don;t know.
Simon Rouse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top