how to pass null values to an append query from vb interface

  • Thread starter Thread starter Joseph Moraise
  • Start date Start date
J

Joseph Moraise

dear friends,

please any one can advise me to how to pass null value to
a stored query in access. i created an append query in
access, the values are passing through paramters. the
table is having 2 foriegn key constraints with other two
table. so when i am executing queries, for the reference
fields i am passing empty string , but raise an error says
a reference record should exist in the reference table.

please help out to solve this problem. i hope if i am able
to set the field value as null constant( like normal sql)
it will work. but i don't know how?

with regards
Joseph Moraise
 
Try vbNull

--
Rebecca Riordan, MVP

Designing Relational Database Systems
Microsoft SQL Server 2000 Programming Step by Step
Microsoft ADO.NET Step by Step

http://www.microsoft.com/mspress

Blessed are they who can laugh at themselves,
for they shall never cease to be amused...
 
Back
Top