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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query and DMax help

Status
Not open for further replies.

hockeylvr

Technical User
Nov 26, 2002
140
I have a query which includes a query "Parts_List" and a table "BOM"

Query fields:
seq_no (Parts_List)
level (Parts_List)
seq_no (BOM)
level (BOM)
Parent Level: [BOM.level]-1

Parent_Sequence: DMax("[seq_no]","Parts_List","[Parts_List]![seq_no]< [Jupiter_LP2_BOM]![seq_no] AND [Parts_List]![level]=[Jupiter_LP2_BOM]![level]-1")

End_Sequence: DMin("[seq_no]","Parts_List","[Parts_List]![seq_no]>[Jupiter_LP2_BOM]![seq_no] AND [Parts_List]![level]=[Jupiter_LP2_BOM]![level]-1")-1

partno (Parts_List)

I am getting no data at all for the Parent_Sequence and End_Sequence and cannot figure out why?

Any ideas would be appreciated!

Thanks,

Toni


 
What is Jupiter_LP2_BOM ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Sorry - didn't change them all - was trying to keep it short!

Jupiter_LP2_BOM is BOM

Thanks
 
Perhaps this ?
Parent_Sequence: DMax("seq_no","Parts_List","seq_no<" & Jupiter_LP2_BOM.seq_no & " AND [level]=" & Jupiter_LP2_BOM.level-1)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PH! This looks like just what I need! I need to have my co-worker verify it and will post back with results.

Thanks again,

Toni
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top