Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Module Importing word form

Status
Not open for further replies.
Jul 14, 2003
116
CA
Hello all,

I'm new to Access DB modules so I'm not sure what is going on. I created a module that imported data from a word form. Everything works fine except when importing date/time information. If the field in the table is type date/time and the field in the form is null then I get the following error "Access DB error -2137352571: Type Mismatch". If the field in the form is filled in with a properly formatted date the import works fine. Also if I change the data type of the field in Access to Text the import works fine. Does anybody know how to fix the code so that if the date/time field in the form is blank then the module would just import null into the table for the date/time field? Here is the line of code from the module:

!expDt = doc.FormFields("expDt").Result
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top