J
JB
Upon button click, I need to set the value of a control
on the current form to the max of field within a table
plus one.
I've tried the following but keep getting errors. (BTW-
the query actually works fine when run separately.) Any
help?
Me!housingInvoiceNbr = DoCmd.RunSQL("SELECT max
(housingInvoiceNbr)+1 as myInvoice from tblHouseStay")
Thanks.
JB
on the current form to the max of field within a table
plus one.
I've tried the following but keep getting errors. (BTW-
the query actually works fine when run separately.) Any
help?
Me!housingInvoiceNbr = DoCmd.RunSQL("SELECT max
(housingInvoiceNbr)+1 as myInvoice from tblHouseStay")
Thanks.
JB