Insert Into Values Question

  • Thread starter NeonSky via AccessMonster.com
  • Start date
N

NeonSky via AccessMonster.com

Hi,

This works....

INSERT INTO tblFileTypeDateExport (FileName)
VALUES ('A0-' & Format(Date(),'mmddyyyy') & '.xls')

This Does not....

INSERT INTO tblFileTypeDateExport (FileName)
VALUES ('A0-' & Format(Date(),'mmddyyyy') & '.xls'), ('B0-' & Format(Date(),
'mmddyyyy);

Why?

Thanks for thinking about my question!
 
M

Marshall Barton

NeonSky said:
This works....

INSERT INTO tblFileTypeDateExport (FileName)
VALUES ('A0-' & Format(Date(),'mmddyyyy') & '.xls')

This Does not....

INSERT INTO tblFileTypeDateExport (FileName)
VALUES ('A0-' & Format(Date(),'mmddyyyy') & '.xls'), ('B0-' & Format(Date(),
'mmddyyyy);


You forgot to specify the field for the second value.

INSERT INTO tblFileTypeDateExport (FileName, somedield)
Values(. . .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top