I'm simply trying to get the max ID in a sql server table....this is getting the lowest number?
Using a lookup to get one single record.
;
Patch(
'[dbo].[t_nsc_trackcode_trans_time_entry_pa]',
Defaults('[dbo].[t_nsc_trackcode_trans_time_entry_pa]'),
{
NSC_ID_Ref: LookUp('[dbo].[t_nsc_trackcode_assigned_dd_DataEntry_pa]',ID_Racfid = lbl_Racfid.Text ,Max(Value(NSC_Id))),
opened_at: Now(),
inprogress_or_closed_at: Now()
}
)
;
Thanks
Dave