Solved

Getting value from a blank field of a database

Posted on 2002-06-09
3
120 Views
Last Modified: 2010-05-02
my task is to get a value from several table let say table A, table B, table C and table D to a single table name table E.the problem that im facing now is that from these seperate table i need specific field from each of them and insert it into table E.i cant insert a blank/null value (field) from table A,B,C,D to a field in table E.the field that need in table E,must be fill up and cant be left blank/null or else error will occur.

e.g.:
Set rs1 = adoconn.Execute("SELECT PrinOut FROM Provision WHERE MasterAcNo in (SELECT MasterAcNo FROM account_Holder WHERE CustNo = '" & Trim(rs!CustNo) & "')")
rs1!PrinOut = Null

error prompt out:
the table cannot be zero-length.
due to this program is a data checking program, i cant make modification on the table on the field cos' all the fields in the table E is compulsory.

wat is the method or way that can help me solve this problem?
0
Comment
Question by:wpkay
3 Comments
 
LVL 51

Accepted Solution

by:
Ryan Chong earned 50 total points
ID: 7066296
then to ensure all the fields in Table E filled in, you must make sure all fields that fill in to Table E (fields from either Table A, B, C or D) are compulsory too (Set their Allow Zero Length and Required Property to True)

In addition, you can also check to ensure all the data insert into Table E is not empty/null. > Do a Select Statement to check whether fields are empty/null.

Cheers
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7873467
Hi wpkay,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept ryancys's comment(s) as an answer.

wpkay, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7924938
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question