![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I have a sql server table with a column definition that I cannot change (third party application) when I link this table into access97 the linked table has a field called t_ccur with these properties required = yes allow zero length = yes running this vba, rs.addnew rs!t_ccur = "" rs.update gives me this error Cannot insert the value NULL into column 't_ccur', table 'xyz'; column does not allow nulls. INSERT fails. but I'm not set it to Null, I'm trying to set it to a zero-length string since it is required, how do I set this field to a zero-length string in vba ? do I need to build an INSERT statement ? |
#4
| |||
| |||
|
|
On Tue, 18 May 2010 10:16:18 -0700 (PDT), Roger lesperan... (AT) natpro (DOT) com> wrote: ADO may not be the answer. Can you use a passthrough query? -Tom. Microsoft Access MVP I have a sql server table with a column definition that I cannot change (third party application) when I link this table into access97 the linked table has a field called t_ccur with these properties * required = yes * allow zero length = yes running this vba, * rs.addnew * rs!t_ccur = "" * rs.update gives me this error * Cannot insert the value NULL into column 't_ccur', * * *table 'xyz'; column does not allow nulls. INSERT fails. but I'm not set it to Null, I'm trying to set it to a zero-length string since it is required, how do I set this field to a zero-length string in vba ? do I need to build an INSERT statement ?- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |