Actually I lie.
DLookup() should do it.
prodID = dlookup("[ID]","products","[productname]= " & Me.ProductName )
danger of Dlookup is if there is a possiblity that more than one record might be returned.
takes things out of the realm of "coding" and into using Access' inbuilt functionality but why write a bunch of code to do something that Access provides for you?
DLookup() should do it.
prodID = dlookup("[ID]","products","[productname]= " & Me.ProductName )
danger of Dlookup is if there is a possiblity that more than one record might be returned.
takes things out of the realm of "coding" and into using Access' inbuilt functionality but why write a bunch of code to do something that Access provides for you?
Last edited: