Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent,how assign null value to a field in access

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
vb6
access 97

how can assign a null value to any field to any table from vb6 to access database

please,
 
Hi,

If you don't insert any value it will be null, so there seems to be little point in doing it. But it can be done:

con.Execute "INSERT INTO TblMyTable(name) VALUES (NULL)"

Sunaj
 
Hi,

That comment was not quite thought throug - well its still early in the morning. It probably more relavant in a UPDATE statment:

con.Execute("UPDATE TblMyTable SET name = NULL WHERE name='sunaj'")

X-)Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top