A
Anthony Linnett
Hi guys, please forgive any use of incorrect terminology, i am a bit of an
access newbie.
Below I have constructed an example of the problem I am having. My db does
not have any relationships defined and contains the following tables.
========================================================================
tblManufacturers
Manufacturer_ID Manufacturer_Name
1 Asus
2 Sony
========================================================================
tblSuppliers
Supplier_ID Supplier_Name
1 Bobs Local Computers
2 Black Market
========================================================================
tblParts
Part_ID Part_Name
1 Mobile Phone
2 Laptop
========================================================================
tblPartsSuppliers
PartSupp_ID Supplier_ID PartSupp_Code Manufacturer_ID
PartManuf_Code Part_ID
1 1 BasicPhone
1
2 1 RipoffPhone
2 1
3 StolenLaptop
2 SomeSonyCode 2
========================================================================
We use tblPartsSuppliers to list where a Part can be purchased. Supplier_ID,
ParSupp_Code, Manufacturer_ID and PartManuf_Code are all not required and
Nulls are allowed. I db.OpenRecordset with SQL query "SELECT * from
tblPartsSuppliers WHERE Part_ID = 1" (braces etc. omitted) and PartSupp_ID 1
and 2 are NOT returned, however when all fields are populated 1 and 2 ARE
returned.
What can I use to make the query return records containing fields with Null
values? (I understand the table structure is horrible, however this is what
I inherited. It does make for easy data entry.) Thanks in advance.
access newbie.
Below I have constructed an example of the problem I am having. My db does
not have any relationships defined and contains the following tables.
========================================================================
tblManufacturers
Manufacturer_ID Manufacturer_Name
1 Asus
2 Sony
========================================================================
tblSuppliers
Supplier_ID Supplier_Name
1 Bobs Local Computers
2 Black Market
========================================================================
tblParts
Part_ID Part_Name
1 Mobile Phone
2 Laptop
========================================================================
tblPartsSuppliers
PartSupp_ID Supplier_ID PartSupp_Code Manufacturer_ID
PartManuf_Code Part_ID
1 1 BasicPhone
1
2 1 RipoffPhone
2 1
3 StolenLaptop
2 SomeSonyCode 2
========================================================================
We use tblPartsSuppliers to list where a Part can be purchased. Supplier_ID,
ParSupp_Code, Manufacturer_ID and PartManuf_Code are all not required and
Nulls are allowed. I db.OpenRecordset with SQL query "SELECT * from
tblPartsSuppliers WHERE Part_ID = 1" (braces etc. omitted) and PartSupp_ID 1
and 2 are NOT returned, however when all fields are populated 1 and 2 ARE
returned.
What can I use to make the query return records containing fields with Null
values? (I understand the table structure is horrible, however this is what
I inherited. It does make for easy data entry.) Thanks in advance.