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

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
 
R

Rebecca Riordan

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top