D
Duck
I want to insert into a file which has only two fields ([UserName],
[Passwd]), the users UserName for each field. This is used as the
default initial password for users when they are added to the
database. I have a command button on a form, which also contains a
text field ([UserName]) that runs the command:
CurrentDb.Execute "INSERT INTO tblPasswd(UserName, Passwd)
VALUES('"&Me.UserName&"', '"&Me.UserName&"');"
However no matter how rearrange the command I either get a syntax
error or an "expected end of statement" error with the double quote,
single quote, comma, single quote, double quote, between the two value
variables highlighted.
[Passwd]), the users UserName for each field. This is used as the
default initial password for users when they are added to the
database. I have a command button on a form, which also contains a
text field ([UserName]) that runs the command:
CurrentDb.Execute "INSERT INTO tblPasswd(UserName, Passwd)
VALUES('"&Me.UserName&"', '"&Me.UserName&"');"
However no matter how rearrange the command I either get a syntax
error or an "expected end of statement" error with the double quote,
single quote, comma, single quote, double quote, between the two value
variables highlighted.