(Newbie) Hi,
Form 1: has a List Box bound to Table 1. Form 2: has a Text Box bound to Table 1. When I enter text in Text Box and click "Add" button on Form 2, I want this text to appear in the List Box in Form 1.
Code so far...
'Form 2:
Private Sub btnAdd_Project_Click()
DoCmd.Close
DoCmd.OpenForm "Front_Page_Form", acNormal
End Sub
'Form 1:
Private Sub Form_AfterUpdate()
Me.List1.Requery
End Sub
Private Sub Form_Current()
Me.List1.Requery
End Sub
Private Sub Form_GotFocus()
Me.List1.Requery
End Sub
Private Sub Form_Load()
Me.List1.Requery
End Sub
As you can see, I'm tryin' the lot (requery) but nothin's workin'. Note, the text typed in the text box does reach the table 1 ok...I have to manually hit refresh though to see any updates.
How do I get the List Box on Form 1 to update/refresh with the new text?
Thanks.
Form 1: has a List Box bound to Table 1. Form 2: has a Text Box bound to Table 1. When I enter text in Text Box and click "Add" button on Form 2, I want this text to appear in the List Box in Form 1.
Code so far...
'Form 2:
Private Sub btnAdd_Project_Click()
DoCmd.Close
DoCmd.OpenForm "Front_Page_Form", acNormal
End Sub
'Form 1:
Private Sub Form_AfterUpdate()
Me.List1.Requery
End Sub
Private Sub Form_Current()
Me.List1.Requery
End Sub
Private Sub Form_GotFocus()
Me.List1.Requery
End Sub
Private Sub Form_Load()
Me.List1.Requery
End Sub
As you can see, I'm tryin' the lot (requery) but nothin's workin'. Note, the text typed in the text box does reach the table 1 ok...I have to manually hit refresh though to see any updates.
How do I get the List Box on Form 1 to update/refresh with the new text?
Thanks.