D
David
I have a table "tblLED" that has a field "LedNumber" that
is incremented automatically, not by autonumber however.
The field starts at 1 and increments based on individual
additions to that particular record. A new record with a
different key needs to start at 1 also.
I am trying to look into the table and search for the max
number for a particular ledger entry to be able to add
entries after the last entry.
My VBA code:
HoldLed = dmax("LedNumber", "tblLED",_
"pLedNumber = forms!frmPU!pledNumber")
All I get as a result is the largest number in the entire
domain, not from my "where" criteria. What am I doing
wrong?.
is incremented automatically, not by autonumber however.
The field starts at 1 and increments based on individual
additions to that particular record. A new record with a
different key needs to start at 1 also.
I am trying to look into the table and search for the max
number for a particular ledger entry to be able to add
entries after the last entry.
My VBA code:
HoldLed = dmax("LedNumber", "tblLED",_
"pLedNumber = forms!frmPU!pledNumber")
All I get as a result is the largest number in the entire
domain, not from my "where" criteria. What am I doing
wrong?.