How can I allow a user to define the "fldProgramID" below within a form?
The following works but I must force the fldProgramID=1 to find the last record number and increment by 1 to insert a new record for a specific ProgramID. I do not want to use the Autoincrement since it is possible to have the same RecordNumber for different ProgramIDs.
=DMax("fldRecordNumber","tblRecord","[fldProgramID] =1"
+1
VBA coding uses the standard: "DoCmd.GoToRecord , , acNewRec" to insert a new record.
What I would like to do is something like this:
1) Provide the user a "Insert New Record" button that, upon button Click askes the user to select from a predefined list:
(Which Program?: A, B, C, or D?)
2) Passses the user selected Program_Input to the following:
=DMax("fldRecordNumber","tblRecord","[fldProgramID] =Program_Input"
+1
3) Creates a New Record based on the above input.
I am new to Access 2002.
Thanks!
The following works but I must force the fldProgramID=1 to find the last record number and increment by 1 to insert a new record for a specific ProgramID. I do not want to use the Autoincrement since it is possible to have the same RecordNumber for different ProgramIDs.
=DMax("fldRecordNumber","tblRecord","[fldProgramID] =1"
VBA coding uses the standard: "DoCmd.GoToRecord , , acNewRec" to insert a new record.
What I would like to do is something like this:
1) Provide the user a "Insert New Record" button that, upon button Click askes the user to select from a predefined list:
(Which Program?: A, B, C, or D?)
2) Passses the user selected Program_Input to the following:
=DMax("fldRecordNumber","tblRecord","[fldProgramID] =Program_Input"
3) Creates a New Record based on the above input.
I am new to Access 2002.
Thanks!