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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me Insert NULL field in Database Table 1

Status
Not open for further replies.

mandarine

Programmer
Joined
May 20, 2000
Messages
19
Location
FR
Hello,

How do I insert a Null field into database table?

Let's say I have this fields:
name, address

I want to insert name as Carlos and address as NULL
can I do it in VB?

How I do it in SQL?

Thanks
 
In either VB or SQL, you use the Null keyword in place of the expression that provides the data.

VB: rst!Address = Null
SQL: UPDATE MyTable SET Address = Null WHERE ... Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top