Hi John,
Thanks for your reply.. it's clarifiying my way approaching..
..Well, first off - don't store any data redundantly in both the Invoice
table and the PO table. If you can look up PO information related to
an invoice using a Query, do so.
I don't plan to stored redundant data in both tables.. One of my doubts was
how can I make a query of a "normal" table and an "excel linked" table.. if
there a way to do it?
Yes, exactly the same way you would create any other query. A linked
Excel table has some limitations, but in the main it's just a table;
you can add it to the Query window, add your Invoices table to the PO
window, drag a PO number from the linked table to the Invoices table,
select whatever fields you like.
..Then, I'd suggest storing a PO Number in the Invoices table, as a
foreign key; use the Relationships window to ensure that you can't
create an invoice unless there is a valid PO number for it.
I guess it is related to the statement above.. I'm figuring out how to do
it.. I'm not an expert DB or Access user.. what I have done so far, has
been done only with my poor understanding of access..
Everything was working fine when I controlled the DB by the invoice number,
but now it's better to do it by Po so I can use the application with other
projects which primary will be always the PO.
I would appreciate if you can explain both of above issues a little bit.
I cannot, because I do not know or understand your business or what
you mean by "controlling" the db. PO numbers and Invoice numbers are
just data - data that can be used as links, but neither one "controls"
the database; I'm not even clear what you mean by that statement!
You may run into some problems enforcing relational integrity if you
are forced to always use Excel as the primary storage medium for your
PO's. Excel is *NOT* a relational database program, and knows nothing
about relational integrity; you cannot, for instance, create a
permanent relationship between the linked spreadsheet and your invoice
table to ensure that you only enter valid PO's. Is there any
possiblity of *importing* the spreadsheet, or (faint hope here...)
having an Access or SQL/Server table as the data repository for PO's,
and exporting the data to Excel as needed?
John W. Vinson[MVP]