D
Dan McClelland
Using SQL Server 2K back end and Access XP project as
front end.
Have a bound form with bound textbox controls. Want the
FirstName and LastName fields to begin with Null values
upon creating a new record.
* Set the DefaultValue property of the fields to Null in
table design mode. Doesn't work, the fields initialize
with empty strings ("").
* Set the DefaultValue property of the textbox controls to
Null. Still doesn't work and they still initialize with
values of empty strings.
* Tried to programmatically set the values of the textbox
controls to Null as part of the Click event code for my
New Record button. Doesn't work, I get error "You tried
to assign a Null value to a variable that is not a Variant
data type." HUH? What variable. I'm only dealing with a
textbox control bound to an nvarchar field.
What other resources are there to get assistance with
these seemingly undocumented, and illogical hiccups
between SQL Server and Access? I'm redesigning an
existing Access 97 database as an Access XP adp using SQL
Server 2000 data, and things are suddenly not working as
expected.
front end.
Have a bound form with bound textbox controls. Want the
FirstName and LastName fields to begin with Null values
upon creating a new record.
* Set the DefaultValue property of the fields to Null in
table design mode. Doesn't work, the fields initialize
with empty strings ("").
* Set the DefaultValue property of the textbox controls to
Null. Still doesn't work and they still initialize with
values of empty strings.
* Tried to programmatically set the values of the textbox
controls to Null as part of the Click event code for my
New Record button. Doesn't work, I get error "You tried
to assign a Null value to a variable that is not a Variant
data type." HUH? What variable. I'm only dealing with a
textbox control bound to an nvarchar field.
What other resources are there to get assistance with
these seemingly undocumented, and illogical hiccups
between SQL Server and Access? I'm redesigning an
existing Access 97 database as an Access XP adp using SQL
Server 2000 data, and things are suddenly not working as
expected.