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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2002 - Insert into statement ?

Status
Not open for further replies.

nhtraven

Technical User
Dec 10, 2000
114
US
Hi all,

I have the following code which works fine in 2000 but isnt working in 2002. I have checked the dao objects in references. but also have the active X references checked. is that what the problem is???

LateCharge is a numeric field (I thought no special characters needed for that, like ' or #)

Dim db As Database

Set db = CurrentDb()
db.Execute "INSERT INTO tblPayment (LateCharge) Values (" & NewData & ");"
Set db = Nothing


ANY and ALL help or references are most welcome.

THanks
RAVEN
 
James,

I checked references, made the line of code
dim db as dao.database

And still getting the following error

Runtime error 3134
Syntax error in Insert into statement

ANy ideas??

Raven
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top