Hi John,
I should say at this stage that my only previous experience in Visual Basic
is modifying macros based on keystroke recording in Excel.
I have two tables: One is 'products'. This contains product ID, product
name, selling price, buying price, VAT rate, supplier code, supplier part no
and a few other fields. The other table is 'suppliers'. This contains the
supplier code (as referred to from 'products'), supplier name and then fields
for supplier contact details. I have created a form for products using all
the fields in the products table. The 'supplier code' field uses a combo box
with the list generated from the 'suppliers' table. When setting up new
products there will be occasions when the supplier is new and will not yet be
in the suppliers table. When setting up a new product and attempting to add
new supplier, I would like a message/pop-up (or the Access 2000 equivalent,
as that's what I'm using at work; I'm using 2007 at home) to say 'this
supplier does not exist, would you like to add it?' and if the answer is
'yes' then a new record to be created in the suppliers table with that single
field of data entered. I would then add the rest of the supplier data later.
Q: do I need to create a suppliers form for this to happen or can I get it to
write directly to the suppliers table?
I have tried using the Expression Builder, but I am fumbling in the dark, as
I don't know which bit to put in the 'On Not In List' and what to put
elsewhere.
> >I have a simple database of products and suppliers and a couple of small
> >lookup tables. The products and suppliers tables are linked in a
[quoted text clipped - 15 lines]
>
> John W. Vinson/MVP