Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / July 2005

Tip: Looking for answers? Try searching our database.

Null Help!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nam - 27 Jul 2005 02:43 GMT
Dear all,

I have a form in Acces and have some textbox to enter date which will be
insert to a field with date format in Access. However, if user does not enter
date in date textbox (key in nothing) when I try to save Access table there
ia an error 'Type mismatch'. I think the error is that the field with date
format in Access table can not get the null value from a textbox(value may be
"").

Could any one can help me on this problem! Or can give a function that can
convert the textbox to null value that then can be saved to Access table
field.

Thank you very much.
Ken Snell [MVP] - 27 Jul 2005 04:49 GMT
Normally, having a textbox bound to a Date/Time field and having a Null
value in that textbox will not cause a Type Mismatch error when the form
saves its data.

The fact that you get this error suggests that your form is doing something
with the value from that textbox before you save the form's data? Please
give us more details about what you're doing.

Signature

       Ken Snell
<MS ACCESS MVP>

> Dear all,
>
[quoted text clipped - 13 lines]
>
> Thank you very much.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.