JoanneJames
Registered User.
- Local time
- Today, 15:29
- Joined
- Feb 19, 2008
- Messages
- 59
I have recently moved a DB over to SQL Server - still using Access as front-end (linked tables). 2 fields having trouble with in SQL Server are both defined to not accept null values and have default values defined as such: ie ('No Donor'). If I remove a value from one of these fields via my form, instead of putting the default value into the field upon saving the record, I get an error message: " You tried to assign the Null value to a variable that is not a Variant data type. (Error 3162)". This error msg occurs BEFORE going to any event, although it appears to originate from within Access itself. I tried the following:
1. changing from double quotes to single quotes in the forms default value
2. Made sure form will assign default values via fetch default values property
3 Verifying that default values were assigned in SQL Server
4. Changing the default value in the link (there is NO default value in design mode on the Access side for the link and it won't allow me to add it. This is where I am guessing the problem lies - I am presuming that when I establish a link, it should pass this info to Access, so it appears this is not happening.
5. Re-linked (although did not re-create the DSN)
I really need some help with this!!! Have been trying to figure out during last few days!!
1. changing from double quotes to single quotes in the forms default value
2. Made sure form will assign default values via fetch default values property
3 Verifying that default values were assigned in SQL Server
4. Changing the default value in the link (there is NO default value in design mode on the Access side for the link and it won't allow me to add it. This is where I am guessing the problem lies - I am presuming that when I establish a link, it should pass this info to Access, so it appears this is not happening.
5. Re-linked (although did not re-create the DSN)
I really need some help with this!!! Have been trying to figure out during last few days!!
