troubleshooting Question

Where Primary key is equal to recordset item

Avatar of samme
sammeFlag for United States of America asked on
Visual Basic Classic
6 Comments1 Solution311 ViewsLast Modified:
     I'm trying to pull different data from two tables in the same ODBC Database. The first recordset draws fine, the second runs into problems when I try to use the first set item from the first list as the criteria to find the proper line in the second table. Vend Num is the Primary key in the second table, please help
Set rsBidPO = gdbOp.OpenRecordset("Select BidHist.VendNum, BidHist.Cost, BidHist.EstWt, BidHist.MOQ, BidHist.Lead, BidHist.FOB, BidHist.BidDate, BidHist.Valid, BidHist.Notes From BidHist Where CatNum = " & fa.TextMatrix(rowctr, 5))

Set rsBidPO2 = gdbOp.OpenRecordset("Select VendHdr.MinOrd, VendHdr.PaymentTerms From VendHdr Where VendNum = " & rsBidPO(0))
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros