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

Insert Into problem in access

Status
Not open for further replies.

Lhuffst

Programmer
Jun 23, 2003
503
US
I am trying to use
insert into tblexport (f1...f10)
Select f1..f10 from qryname
Where condition

This works fine as long as each field on the select has a value. How do I insert a null value if the field is empty? The table tblexport has allow null fields set to yes.
 
I believe it will just insert the Null fields, which should be OK since you say tblExport allows null values.
 
Possibly assign alternate values, to subquery?

INSERT INTO tblExport(f1,f2,...
SElect FROM qryImport(Nz(f1,""),Nz(f2,"")

I believe it will accept Empty string values,
as opposed to null values.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top