Hello Smart Users,
I am a newbie in access. Still trying to learn access.
I have a table with 2 field named tblNumber. ID (PK, Autonumber) Number (Number, Long Integer)
I have a form (frmMy) with a text box (text1) default_value used as DMAX to get MAX value of tblNumber =Nz(DMax("Number","tblNumber"),0) & one command button
This is what i would like to achieve, when i click on button;
1. Pop up an Input Box asking for "How many records want to insert?"
2. Check the input box response, if it >0 then
3. Insert text1+response numbers in table tblNumber. Of Course need to check in tblNumber before add records for duplicates. SImply can exclude duplicates & insert only non duplicates numbers.
4. In a another text box ( I can create in this form, ie text2) showing, "The following Accounts are created"
eg:
let's say MAX value in text1 is 1000, when prompt for input box, I entered 5
So in tblNumber need to INSERT new records as 1001, 1002, 1003, 1004, 1005 & text2 showing "The following Accounts are created: 1001, 1002, 1003, 1004, 1005")
Also, how can i force text1 to update when i open form frmMy?
I really appreciate any help.