Hi!
Question 1:
I have two subforms on exactly the same place. they are even the same, but one is for reading and the other one is for inserting records.
how can I do
Data Entry = true
or
Data Entry = false
in VBA to diversify those forms? There is no field like that?
a workaround (or maybe the most common solution) seems to be: docmd.gotorecord , , acNewRec. but it doesn't work. docmd.gotorecord shall display instead of an existing record the empty form with possibility to enter values?
Question 2:
I have a subform with text boxes. let's call one of it textbox1. So, if I click textbox1, the combobox1 of the mainFrame should be updated with the value, I insert into the textBox1.
the combobox1 was created with the wizard, so it has a query itself in the raw source. Select * from qry_selectMethod Where..."
I read in many communities, that the combobox as a control source has strange behavior, and especially the requery method seems to have troubles.
Especially: PRESSING F9 after having change the text box WORKS! Isn't that strange? But the requery command in vba code doesn't.
here the textbox: Forms![frm_newEntry_newOutput]![frm_SeeMethodsForSelectedMethodType_newEntry].Form![textbox1]
here the combobox: Forms![frm_newEntry_newOutput]![combobox1]
Private Sub textbox1_AfterUpdate()
Forms![frm_newEntry_newOutput]![cmb_combobox1].Requery
End Sub
PLEASE HELP ME!
Thanks,
Alex
Question 1:
I have two subforms on exactly the same place. they are even the same, but one is for reading and the other one is for inserting records.
how can I do
Data Entry = true
or
Data Entry = false
in VBA to diversify those forms? There is no field like that?
a workaround (or maybe the most common solution) seems to be: docmd.gotorecord , , acNewRec. but it doesn't work. docmd.gotorecord shall display instead of an existing record the empty form with possibility to enter values?
Question 2:
I have a subform with text boxes. let's call one of it textbox1. So, if I click textbox1, the combobox1 of the mainFrame should be updated with the value, I insert into the textBox1.
the combobox1 was created with the wizard, so it has a query itself in the raw source. Select * from qry_selectMethod Where..."
I read in many communities, that the combobox as a control source has strange behavior, and especially the requery method seems to have troubles.
Especially: PRESSING F9 after having change the text box WORKS! Isn't that strange? But the requery command in vba code doesn't.
here the textbox: Forms![frm_newEntry_newOutput]![frm_SeeMethodsForSelectedMethodType_newEntry].Form![textbox1]
here the combobox: Forms![frm_newEntry_newOutput]![combobox1]
Private Sub textbox1_AfterUpdate()
Forms![frm_newEntry_newOutput]![cmb_combobox1].Requery
End Sub
PLEASE HELP ME!
Thanks,
Alex
Last edited: