dthmtlgod wrote:
> I am trying to insert a date into a date field through my website.
> The date is pre-populated with todays date. I am getting a type
> mismatch error. The Access DB is setup as a Date/Time Short Date
> field.
>
> Here is the SQL string. Any ideas?
>
> Conn.execute ("INSERT INTO PrinterMaintenance (MaintDate, SA,
> Maintenance, PrinterName, UserName) VALUES ('MaintDate', 'SA',
> 'Maintenance', 'PrinterName', 'UserName')")
This statement is attempting to put the word 'MaintDate' into a field that
will only accept date/time values.
Check out these posts:
http://www.google.com/groups?hl=en&l...TNGP12.phx.gbl
http://www.google.com/groups?hl=en&l...%3D10%26sa%3DN
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.