judyscofield
Programmer
I'm in the click event of a command button. I'm trying to insert a record into a table, so I've got:
Dim dbs As Database
Set dbs = CurrentDb
Dim txtFileName as String
txtFileName = "ABC.txt"
dbs.Execute " INSERT INTO AFCARSCombine (FileName) VALUES txtFileName "
I get "User Defined Type Not Defined" with Database highlighted in the Dim dbs statement. Isn't that a standard type? What do I need to do????
Thanks
Judy Scofield
Dim dbs As Database
Set dbs = CurrentDb
Dim txtFileName as String
txtFileName = "ABC.txt"
dbs.Execute " INSERT INTO AFCARSCombine (FileName) VALUES txtFileName "
I get "User Defined Type Not Defined" with Database highlighted in the Dim dbs statement. Isn't that a standard type? What do I need to do????
Thanks
Judy Scofield