Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

Inner Join in B6

$
0
0
Hi guys, any idea how can i use innerjoin in VB, im not sure if its inner join that i nee to use.
Here is the scenario.
i have two tables: tblProductInfo and tblSerialNumber
tblProductInfo: StockCode,BarcodeNumber
tblSerialNumber: Serial,BarcodeNumber

Both tables have barcode number.

I Need to know what is the last Number that is being Generated.
example:
ProductInfo
SC0001 BC0001
SC0002 BC0002
SC0003 BC0004

SerialNumber
SC0004 BC0003
SC005 BC0005


In both table i need to know the last Barcode Number generated so that i can increment it with BC0006.
I tried
Code:

rsconn "select BarcodeNumber from tblProductInformation INNER JOIN tblSerialNumber on tblProductInformation.BarcodeNumber = tblSerialNumber.BarcodeNumber"
'Increment Barcode Number

But my querry is wrong..
thanks in advance.

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>