gold007eye
Registered User.
- Local time
- Today, 15:14
- Joined
- May 11, 2005
- Messages
- 260
Could anyone tell me what I am doing wrong here. I read through several posts and tried using the solutions, but to no avail. Here is the code I am using:
Although I am getting the error when I put my mouse over the "MySQL" line in the debug window the "Values" are showing the correct text. I just don't understand what it means by "Expected 1"
If it helps the Transaction Codes table has 2 fields; "Transaction Code" (Text)& "Status" (On/Off)
Code:
Dim db As DAO.Database
Dim MySQL As String
Set db = CurrentDb()
MySQL = "INSERT INTO [Transaction Codes]([Transaction Code]) VALUES (" & NewData & ");"
db.Execute MySQL, dbFailOnError
Set db = Nothing
Although I am getting the error when I put my mouse over the "MySQL" line in the debug window the "Values" are showing the correct text. I just don't understand what it means by "Expected 1"
If it helps the Transaction Codes table has 2 fields; "Transaction Code" (Text)& "Status" (On/Off)