I have a query to add a record to table which is fine. What I am trying to accomplish is to one
1>Find the highest value assigned to the part # in the same table. This was done with another extra query.
a.QryMaxAGL
2> Create a text box (unbound) in the form that show the value of the AGLmax + 1
3> Assign this value to one of the field in the table when the user add a new record.
In summary, I have used the following, but I can’t get it to work.
Property sheet,
control source = SELECT Max([TAGLserial].[AGLID]) AS AGLmax FROM TAGLserial;
Any comment would be greatly appreciated.
1>Find the highest value assigned to the part # in the same table. This was done with another extra query.
a.QryMaxAGL
Code:
SELECT Max([TAGLserial].[AGLID]) AS AGLmax FROM TAGLserial;
3> Assign this value to one of the field in the table when the user add a new record.
In summary, I have used the following, but I can’t get it to work.
Code:
Me.text101= SELECT Max([TAGLserial].[AGLID]) AS AGLmax FROM TAGLserial;
control source = SELECT Max([TAGLserial].[AGLID]) AS AGLmax FROM TAGLserial;
Any comment would be greatly appreciated.
Comment