Thanks Mary For the assistance!! it worked great.
just a quick question on Dlookup though......Is it possible to Lookup between a range of numbers? in the same form I want to look up an AQL level by the number of samples submitted. i have a table AQL with MinSamp and MaxSamp. i have replicated the info you gave me earlier using the following
- Private Sub RecQTY_AfterUpdate()
-
Me.ReqAQL = DLookup("[ReqAQL]", "tblAQL", "[SampMin]>=" & Me.RecQTY)
-
-
End Sub
however I keep getting inaccurate results unless I type in the specific number in SampMin. the table is as specified
SampMin SampMax ReqAQL
1 1 1
2 8 2
9 15 3
16 25 5
so on and so forth. If I type in 9 in RecQTy then ReqAQL populates with 3 but if i type in 10 then it populates with 5. I know in excel how I would do this....unfortunately this is not excel. Thanks for any help you can provide. I am just a newbie and I apologize if I am annoying.