Ok, Marsh, you might want to skip to the second paragraph here to save a lot
of time............................
1)Lets say I have a data entry from where the operator enters data into 3
fields, each of which is a serial number field for a specific component.. eg.
PCB SERIAL NUMBER, CHASSIS SERIAL NUMBER and PUMP SERIAL NUMBER. This data is
put into a table called TblZQDatabaseSheet. The is one other table which
basically consists of a list of serial numbers. This is TblDeviations. It is
called this because quality issues raised through deviations are often
tracked by individual component serial numbers of components.. eg A deviation
might effect a future batch of incoming CHASSIS numbered 100 to 200. Let us
assume we are entering the 3 component serial numbers for a complete unit
through a form based on TblZQDatabaseSheet and the CHASSIS SERIAL NUMBER is
now at 99.(Please bear in mind that these 3 serial numbers have no
relationship to each other and could be put into a unit of number abc45,
basically any number)As the data entry operator is entering the component for
the new unit they will now find that the latest sub CHASSIS SERIAL NUMBER
will be 100 which is impacted by my deviation as mentioned above. I need the
form FrmZQDatabaseSheet to alert the user that they are now entering a sub
assembly serial number which has an associated pdf or note. I hope that is
better explained.
2)Just as an aside to this , currently I have created 3 small subforms which
are attached to the table TblDeviations .If the serial number in CHASSIS
SERIAL NUMBER field is the same as one of those numbers listed in the
TblDeviations table then the form appears to indicate a record which is
actually good enough for me. I have only one field showing in the subform
which is an OLE pdf form which dissapears or reappears automatically if the
two serial numbers match. I thought I had it sorted but then aaaaaaaaaaaaa 2
forms will work automatically as the serial numbers are entered into the
field but one wont until I refresh the form data. I have tried everything
regarding copying fileds renaming destroying relationships and recreating
etc,etc but I cannot get one (actually 2 of 15) fields to update
automatically. If you had any ideas on this then I could forget the whole
query above . To the user, magically appearing red pdf boxes looks very
impressive. I just don't want to any any more refresh code to my from which
has much other code.
Marshall Barton said:
I think we need to back up and start from a more detailed
description of yourtable, its fields, the form, what it's
supposed to do.
I also have no idea what you are trying to do with the
recordset nor what the code in your procedure looks like.
Give me the right information to work with and I will try to
save your job ;-))
--
Marsh
MVP [MS Access]
Ah d**M it I will be sacked soon. No matter what I do I cannot check 15
entries(allbeit one at a time for the moment) against a list of records in
another table to see if there is a match.I have read 2 full books on VBA and
VB over the past while and cannot find the right code to do it. please help.
Maybe I should have started my thread by saying that I had to check 3 entries
in a from against a table listing.....I am only checking on one field so
there must be a way sql/recordset or otherwise to do it aaaaaaaaaaaa