MaryMoseley
New member
- Local time
- Today, 15:45
- Joined
- Jul 23, 2014
- Messages
- 6
I have a 1 to 1 relationship in this contract admin database, because each month, I import data from a contract management spreadsheet. The imported file has all possible contracts to close. The additional info I research before I can close contracts is put in the Info table. The contract # is the primary key for both tables.
Same two tables are used in both queries, same join properties (even believe I may have copied). Property sheet properties are the same. Basic difference is pulling Ready to Close and Pending to Close
I researched all the details about how/when queries can be updated. Nothing stands out as applying, plus one of these works! This will probably be something I call myself a dummy about, but comparing the two queries, I haven't figured it out!
Here is the SQL for Pending to Close, which doesn't let me edit:
SELECT Info.[Close Status], Info.Pending.Value, Info.[Pending Completed].Value, Info.[1797 sent?], Info.[Status Date], abfP2P.[PIIN-SPIIN], Info.Comments, Info.[Sect:Status Date], abfP2P.Contractor, abfP2P.Section, Info.[LISSR bal?], Info.[Z Ship #], Info.[Z date], Info.[Final Pay #], Info.[Mod MOCAS=EDA?], Info.[Prod Complete?], Info.ULO, Info.[Closed Using], abfP2P.[Paying Office], abfP2P.FDD, abfP2P.[Physical Completion Date], abfP2P.[Overage Dt], Info.[ACO Rmk added]
FROM abfP2P LEFT JOIN Info ON abfP2P.[PIIN-SPIIN] = Info.[PIIN-SPIIN]
WHERE (((Info.[Close Status])="pending"))
ORDER BY Info.Pending.Value, Info.[Status Date];
SQL for Ready to Close, which lets me edit fields:
SELECT Info.[Close Status], Info.[Status Date], Info.[Sect:Status Date], Info.Comments, abfP2P.Contractor, abfP2P.[PIIN-SPIIN], abfP2P.Section, Info.[LISSR bal?], Info.[Z Ship #], Info.[Z date], Info.[Final Pay #], Info.[Mod MOCAS=EDA?], Info.[Prod Complete?], Info.[Closed Using], abfP2P.[Paying Office], abfP2P.FDD, abfP2P.[Physical Completion Date], abfP2P.[Overage Dt], Info.[Sect:Status Date]
FROM abfP2P LEFT JOIN Info ON abfP2P.[PIIN-SPIIN] = Info.[PIIN-SPIIN]
WHERE (((Info.[Close Status])="ready") AND ((abfP2P.Section)="1" Or (abfP2P.Section)="2"));
What else do you need to know?
Same two tables are used in both queries, same join properties (even believe I may have copied). Property sheet properties are the same. Basic difference is pulling Ready to Close and Pending to Close
I researched all the details about how/when queries can be updated. Nothing stands out as applying, plus one of these works! This will probably be something I call myself a dummy about, but comparing the two queries, I haven't figured it out!
Here is the SQL for Pending to Close, which doesn't let me edit:
SELECT Info.[Close Status], Info.Pending.Value, Info.[Pending Completed].Value, Info.[1797 sent?], Info.[Status Date], abfP2P.[PIIN-SPIIN], Info.Comments, Info.[Sect:Status Date], abfP2P.Contractor, abfP2P.Section, Info.[LISSR bal?], Info.[Z Ship #], Info.[Z date], Info.[Final Pay #], Info.[Mod MOCAS=EDA?], Info.[Prod Complete?], Info.ULO, Info.[Closed Using], abfP2P.[Paying Office], abfP2P.FDD, abfP2P.[Physical Completion Date], abfP2P.[Overage Dt], Info.[ACO Rmk added]
FROM abfP2P LEFT JOIN Info ON abfP2P.[PIIN-SPIIN] = Info.[PIIN-SPIIN]
WHERE (((Info.[Close Status])="pending"))
ORDER BY Info.Pending.Value, Info.[Status Date];
SQL for Ready to Close, which lets me edit fields:
SELECT Info.[Close Status], Info.[Status Date], Info.[Sect:Status Date], Info.Comments, abfP2P.Contractor, abfP2P.[PIIN-SPIIN], abfP2P.Section, Info.[LISSR bal?], Info.[Z Ship #], Info.[Z date], Info.[Final Pay #], Info.[Mod MOCAS=EDA?], Info.[Prod Complete?], Info.[Closed Using], abfP2P.[Paying Office], abfP2P.FDD, abfP2P.[Physical Completion Date], abfP2P.[Overage Dt], Info.[Sect:Status Date]
FROM abfP2P LEFT JOIN Info ON abfP2P.[PIIN-SPIIN] = Info.[PIIN-SPIIN]
WHERE (((Info.[Close Status])="ready") AND ((abfP2P.Section)="1" Or (abfP2P.Section)="2"));
What else do you need to know?