Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I have one table(persons). This table consist of four fields: id, name, age, address.
Field id is primary key.
I want programmically make new record in table and add only name. (age and address to leave empty).
Set cmd1 = New ADODB.Command
With cmd1
.CommandText = "INSERT INTO persons (name) VALUES ('" & Me.textboxName & "');"
.CommandType = adCmdText
.Execute
End With
but i get error, that field persons.age cannot be null-lenght string.
So is any way to add only name into table?
Thanks in advance for help.
M.
I have one table(persons). This table consist of four fields: id, name, age, address.
Field id is primary key.
I want programmically make new record in table and add only name. (age and address to leave empty).
Set cmd1 = New ADODB.Command
With cmd1
.CommandText = "INSERT INTO persons (name) VALUES ('" & Me.textboxName & "');"
.CommandType = adCmdText
.Execute
End With
but i get error, that field persons.age cannot be null-lenght string.
So is any way to add only name into table?
Thanks in advance for help.
M.