I am trying to run an update query but when it pulls the data from the REPORT# table it is not the first available record. Is there a way in an update query to tell it to choose the min number? Here is what the query looks like:
UPDATE [User Data] INNER JOIN [REPORT#] ON [User Data].TYPE = [REPORT#].TYPE SET [User Data].[USER NMR Number] = [REPORT#]![REPORT#]
WHERE ((([User Data].[USER NMR Number]) Is Null) AND (([User Data].USERAUTONUMBER)=[Forms]![NMR USER ENTRY]![AUTO NUMBER]) AND (([REPORT#].AVAILABLE)="Y") AND (([REPORT#].Number)>1));
The bold field is the field that I would want to get the smallest available value
Thanks in advance
UPDATE [User Data] INNER JOIN [REPORT#] ON [User Data].TYPE = [REPORT#].TYPE SET [User Data].[USER NMR Number] = [REPORT#]![REPORT#]
WHERE ((([User Data].[USER NMR Number]) Is Null) AND (([User Data].USERAUTONUMBER)=[Forms]![NMR USER ENTRY]![AUTO NUMBER]) AND (([REPORT#].AVAILABLE)="Y") AND (([REPORT#].Number)>1));
The bold field is the field that I would want to get the smallest available value
Thanks in advance