Pat Hartman, Anyone,
I saw a previous post response from Pat Hartman which explained this a bit, but I'm still not tracking for some reason.
I want to model a report log system that is currently in use in my office. Presently, transcript reports are simply listed in a logbook (rptnumber, date, operator, etc...). There are three logbooks (Log A, B, C) which have a simple sequential numbering system. example: Log A: AC12345, AC12346, AC12347.
An operator may choose any of the three logbooks when adding a new transcript report and simply write in the next sequential logbook number.
I have a form called frmTranscriptDetails populated by a query qryTranscriptDetailsDE. The PK for the main table is TRNumber which is formatted in the same alphanumeric string from our log books (i.e AC12345).
This is what I'm trying to accomplish.
When an operator creates a new record, a form will pop up prompting him/her to choose one of the three log books. If the operator chooses Log A, and clicks the "newRecord" command button, a new record is created in the frmTranscriptDetails form that autoinserts the the next sequential number from Log A in the TRNumber field of frmTranscriptDetails.
Based on previous posts I understand that I should somehow use the DMAX function to get the TRNumber of the last record, but I'm not too clear exactly how. Any insight on this would be greatly appreciated.
I saw a previous post response from Pat Hartman which explained this a bit, but I'm still not tracking for some reason.
I want to model a report log system that is currently in use in my office. Presently, transcript reports are simply listed in a logbook (rptnumber, date, operator, etc...). There are three logbooks (Log A, B, C) which have a simple sequential numbering system. example: Log A: AC12345, AC12346, AC12347.
An operator may choose any of the three logbooks when adding a new transcript report and simply write in the next sequential logbook number.
I have a form called frmTranscriptDetails populated by a query qryTranscriptDetailsDE. The PK for the main table is TRNumber which is formatted in the same alphanumeric string from our log books (i.e AC12345).
This is what I'm trying to accomplish.
When an operator creates a new record, a form will pop up prompting him/her to choose one of the three log books. If the operator chooses Log A, and clicks the "newRecord" command button, a new record is created in the frmTranscriptDetails form that autoinserts the the next sequential number from Log A in the TRNumber field of frmTranscriptDetails.
Based on previous posts I understand that I should somehow use the DMAX function to get the TRNumber of the last record, but I'm not too clear exactly how. Any insight on this would be greatly appreciated.