Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read specific records from table using VBA

Status
Not open for further replies.

dar149

MIS
Mar 5, 2002
117
US
Hi,
I have a main form that populates a subform. Each record on the subform opens a linked form, which when filled out ends up with a result, stating whether the form that is complete and another result stating if the form is accepted or rejected. I get both results and store them in a table, which shows up as a datasheet subform.

The parent/child link between the main and subform is Sample#. What is need to do is, based on the Sample# in the main form, check to see if all records are completed and accepted in the subform (which is it's own table). Is there a way to do this?

Thanks,
Debbie
 
Or could I possibly read the results of a query from VBA???
 
Just to give a little more detail: I can get each record in the subform to come up with either an Accept or Reject. But when I update the field on the Main form, the value is overwritten each time a record in the subform is updated. Is there another way to capture all the values on the subform and evaluate to either an Accept or Reject for the field on the Main form?

Thanks...
 
Does anyone have any other ideas as to how to capture this value? I've tried many different things, but nothing to date has worked and we are unable to roll out this database until I have a solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top