I would really appreciate someone's help on this, or at least point me
in the right direction....
I'm working on a permit database that contains 12 tables, and rather
than list all of the tables, I'll just list a few, as the links are the
same for all tables. These tables are:
tblPermitMain
tblApplicant
tblContractor
tblEngineer
tblProperty
tblInspections
All of these tables are joined (outer join) to the PermitMain table by
ID fields. I have a query which grabs all of the fields from all of
the tables, and then I have a form which is based on this query.
Here's what I'd like to do...
On this form, we will input the PermiMain info (PermitNumber,
PermitType, etc.), Applicant info (Fname, Lname, etc), Property info
(ParcelNumber, Address, etc), and a subform with Inspection info (date,
notes, etc). Not every record will have a Contractor, or Engineer,
however they may at a later time, which we need to include for a
specific permit. Based on the query below, if I input information in
text boxes for each of the tables above, the information is saved,
however, if I input information for say, PermitMain, Applicant, &
Property, exit that record or close the form, and then open the form
and try to say, add the Contractor or Engineer info, I get the
following error in the status bar at the bottom of the Access window:
"Cannot enter value into blank field on 'one' side of outer join."
Basically, if I enter at least one field of information for each table
above, the record saves. If I enter information in only certain tables
(PermitMain, Property), exit the form , open the form and then attempt
to add information to say the Contractor or Engineer tables, I get the
error. I can edit fields that already contain information, just not
add.
I'm stumped!! Anyways, here's the SQL for the query:
SELECT tblPermitMain.*,
tblProperty.*,
tblApplicant.*,
tblConstContractor.*,
tblConstArchitect.*,
tblConstEngineer.*,
tblConstPlumbing.*,
tblConstMechanical.*,
tblPermitPlumbing.*,
tblPermitMechanical.*
FROM tblPermitPlumbing
RIGHT JOIN (tblPermitMechanical RIGHT JOIN
(tblConstPlumbing RIGHT JOIN
(tblConstMechanical RIGHT JOIN
(tblConstContractor RIGHT JOIN
(tblConstArchitect RIGHT JOIN
(tblConstEngineer RIGHT JOIN
(tblProperty RIGHT JOIN
(tblApplicant RIGHT JOIN tblPermitMain ON
tblApplicant.ApplicantID = tblPermitMain.ApplicantID)
ON tblProperty.PropertyID = tblPermitMain.PropertyID)
ON tblConstEngineer.EngineerID =
tblPermitMain.EngineerID)
ON tblConstArchitect.ArchitectID =
tblPermitMain.ArchitectID)
ON tblConstContractor.ContractorID =
tblPermitMain.ContractorID)
ON tblConstMechanical.MechanicalID =
tblPermitMain.MechanicalID)
ON tblConstPlumbing.PlumberID = tblPermitMain.PlumberID)
ON tblPermitMechanical.PermitMechanicalID =
tblPermitMain.PermitMechanicalID)
ON tblPermitPlumbing.PermitPlumbingID = tblPermitMain.PermitPlumbingID;
Thank you for any help you may give!
dskillingstad 2 4535
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Don't use ONE BIG QUERY for a form. Use one query that loads/reads one
table per form. Then for each dependent table, make a subform on the
main form. In your case, this would mean the main form would be for the
PermitMain, then subforms, each, for Applicant, Contractor, Engineer,
Property and Inspections.
Read the Access Help articles on subforms for info about why to use
subforms. Help articles hierarchy:
Forms
Creating subforms
About subforms
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQkuRCIechKqOuFEgEQKv3ACfTu9WvYXYR9oaTxQtb29HyQ 5c9voAoOBf
3/LW33neChu7o0FxxsMELfhl
=73iD
-----END PGP SIGNATURE----- ds***********@gmail.com wrote: I would really appreciate someone's help on this, or at least point me in the right direction....
I'm working on a permit database that contains 12 tables, and rather than list all of the tables, I'll just list a few, as the links are the same for all tables. These tables are: tblPermitMain tblApplicant tblContractor tblEngineer tblProperty tblInspections
All of these tables are joined (outer join) to the PermitMain table by ID fields. I have a query which grabs all of the fields from all of the tables, and then I have a form which is based on this query. Here's what I'd like to do...
< SNIP >
Thanks for the help. I'll give that a try.
Thanks again,
dskillingstad
MGFoster wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Don't use ONE BIG QUERY for a form. Use one query that loads/reads
one table per form. Then for each dependent table, make a subform on the main form. In your case, this would mean the main form would be for
the PermitMain, then subforms, each, for Applicant, Contractor, Engineer, Property and Inspections.
Read the Access Help articles on subforms for info about why to use subforms. Help articles hierarchy:
Forms Creating subforms About subforms
-- MGFoster:::mgf00 <at> earthlink <decimal-point> net Oakland, CA (USA)
-----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv
iQA/AwUBQkuRCIechKqOuFEgEQKv3ACfTu9WvYXYR9oaTxQtb29HyQ 5c9voAoOBf 3/LW33neChu7o0FxxsMELfhl =73iD -----END PGP SIGNATURE----- ds***********@gmail.com wrote: I would really appreciate someone's help on this, or at least point
me in the right direction....
I'm working on a permit database that contains 12 tables, and
rather than list all of the tables, I'll just list a few, as the links are
the same for all tables. These tables are: tblPermitMain tblApplicant tblContractor tblEngineer tblProperty tblInspections
All of these tables are joined (outer join) to the PermitMain table
by ID fields. I have a query which grabs all of the fields from all
of the tables, and then I have a form which is based on this query. Here's what I'd like to do... < SNIP > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: thilbert |
last post by:
All,
I have a perplexing problem that I hope someone can help me with.
I have the following table struct:
Permission
-----------------...
|
by: Dam |
last post by:
Using SqlServer :
Query 1 :
SELECT def.lID as IdDefinition,
TDC_AUneValeur.VALEURDERETOUR as ValeurDeRetour
FROM...
|
by: Steve |
last post by:
I have a SQL query I'm invoking via VB6 & ADO 2.8, that requires three
"Left Outer Joins" in order to return every transaction for a specific
set...
|
by: Steve |
last post by:
I have a SQL query I'm invoking via VB6 & ADO 2.8, that requires three
"Left Outer Joins" in order to return every transaction for a specific
set...
|
by: Harry Broomhall |
last post by:
I wonder if anybody could give me a few pointers on a problem I face.
I need to do an UPDATE on table A, from an effective left outer join
on A...
|
by: Martin |
last post by:
Hello everybody,
I have the following question.
As a join clause on Oracle we use " table1.field1 = table2.field1 (+) "
On SQL Server we use ...
|
by: Andreas Bauer |
last post by:
Hi,
when I try a left outer join on one table everything works fine:
select * from (tourist.users u left outer join
tourist.user_extended_info...
|
by: Sascha.Moellering |
last post by:
Hi,
I receive the error code SQL0338N if I try to compile this statement
(part of the statement):
.... left outer join lateral
(SELECT * FROM...
|
by: teneesh |
last post by:
Here I have a code for a view that has been created by a developer on my team. I am trying to use the very same code to create a view for a different...
|
by: tammygombez |
last post by:
Hey everyone!
I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
|
by: teenabhardwaj |
last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: CD Tom |
last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
|
by: CD Tom |
last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
| | |