Hello Friends.
Please Help! I have been trying to solve how to combine several text fields and 3 combo fields on a form to store in one control field on a table.
My 3 Combo boxes are: Plat Class Equip
Text Boxes are: ID_Year ID_Month ID_Asgn ID_Asgn_Rng ID_Asgn_Increment
Right now ID Year is formatted as YYYY and ID Month as MM
ID_Asgn is being generated by Exp Builder with =Nz(DMax("Key","["EquipCtrlInv_tbl]"),0)+1
I have used Macro to Set Value for Visual ID where I also concatenated all these fields as one. "Plat" & "Class" & "ID_Year" & "ID_Month" & "-" "ID_Asgn" & "-" & "ID_Asgn_Rng" & "Equip"
I would prefer to use VBA cause there is more that I want it to do that the Macro is not going to be able to do. My VBA skills might as well be new cause it has been too many years since I have used VBA.
I would like the ID_Asgn to be a sequential number. Starting with 1 and then resetting each Month back to 1
I would like the user to be able to put an Increment in the ID_Asgn_Increment i.e 50 and that be added to ID_Asgn and displayed in ID_Asgn_Rng ...haven't figured this one out. The user needs to be able to sometimes assign a range of sequence numbers and come back later to update the rest of the data in the table.
Lastly the sequential number needs to include (concatenate) and stored in table under Visual ID as "Plat" & "Class" & "ID_Year" & "ID_Month" & "-" "ID_Asgn" & "-" & "ID_Asgn_Rng" & "Equip"
While I am thinking about it, is there an easy way to come back later to update that data in the table. Can Access insert the sequential numbers only with the rest of the columns blanks?
Thank you so very much for your help on this.
I hope you all are having a great day!
Please Help! I have been trying to solve how to combine several text fields and 3 combo fields on a form to store in one control field on a table.
My 3 Combo boxes are: Plat Class Equip
Text Boxes are: ID_Year ID_Month ID_Asgn ID_Asgn_Rng ID_Asgn_Increment
Right now ID Year is formatted as YYYY and ID Month as MM
ID_Asgn is being generated by Exp Builder with =Nz(DMax("Key","["EquipCtrlInv_tbl]"),0)+1
I have used Macro to Set Value for Visual ID where I also concatenated all these fields as one. "Plat" & "Class" & "ID_Year" & "ID_Month" & "-" "ID_Asgn" & "-" & "ID_Asgn_Rng" & "Equip"
I would prefer to use VBA cause there is more that I want it to do that the Macro is not going to be able to do. My VBA skills might as well be new cause it has been too many years since I have used VBA.
I would like the ID_Asgn to be a sequential number. Starting with 1 and then resetting each Month back to 1
I would like the user to be able to put an Increment in the ID_Asgn_Increment i.e 50 and that be added to ID_Asgn and displayed in ID_Asgn_Rng ...haven't figured this one out. The user needs to be able to sometimes assign a range of sequence numbers and come back later to update the rest of the data in the table.
Lastly the sequential number needs to include (concatenate) and stored in table under Visual ID as "Plat" & "Class" & "ID_Year" & "ID_Month" & "-" "ID_Asgn" & "-" & "ID_Asgn_Rng" & "Equip"
While I am thinking about it, is there an easy way to come back later to update that data in the table. Can Access insert the sequential numbers only with the rest of the columns blanks?
Thank you so very much for your help on this.
I hope you all are having a great day!