L
Lynlongley
I have a field name called "Transaction No" in a table called BiddingData.
Yes, I put it in with a space between the words.
I'd like to get the field to automatically increase (similar to auto
number), but I run into problems because the field has a space in it. My
code:
Private Sub lot_AfterUpdate(Cancel As Integer)
Transaction No =Nz(Dmax("[Transaction No]","BiddingData"))+1
End Sub
I've tried enclosing Transaction No in quotes and in brackets, but it
doesn't work. I have a bunch of queries that refer to this field, so I'd
rather not change the field name.
Yes, I put it in with a space between the words.
I'd like to get the field to automatically increase (similar to auto
number), but I run into problems because the field has a space in it. My
code:
Private Sub lot_AfterUpdate(Cancel As Integer)
Transaction No =Nz(Dmax("[Transaction No]","BiddingData"))+1
End Sub
I've tried enclosing Transaction No in quotes and in brackets, but it
doesn't work. I have a bunch of queries that refer to this field, so I'd
rather not change the field name.