G
Guest
I have a main form with tab control subforms. When I click on my dropdown
box in the main form to pick "companies" the first one comes up fine. So I
check the second- fine as well. But if I click back on the first one I get
an error message saying city is missing. I go to the table and this is what
is happening:
Table dropdown box has companies:
Name Address
Alpha Omega 400 Oakdale Dr.
Benecare 500 Helendale Road, Suite 175
Better Business Bureau 150 State St.
When I get to the 3 test where I go back to see the 1st one - this is what I
see in the table:
Name Address
150 State St, Suite 175 Suite 175
150 State St, Suite 175
Better Business Bureau 150 State St.
This should NOT happen!!!!
The names of companies are being replaced by address of the 3rd company.
WHY??????
Here is my source code (which isn't much):
Option Compare Database
Private Sub Additional_Contacts_Click()
End Sub
Private Sub Form_Load()
End Sub
Private Sub Exit_Click()
On Error GoTo Err_Exit_Click
DoCmd.Quit
Exit_Exit_Click:
Exit Sub
Err_Exit_Click:
MsgBox Err.Description
Resume Exit_Exit_Click
End Sub
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Private Sub sfrm_CTAContactsView_Enter()
End Sub
Private Sub sfrm_CtaNotesView_Enter()
End Sub
The Record Source is tbl_CTAMain
Allow Filters=Y
Single Form
Views Allowed=Both
Any ideas as to why this is happening?
box in the main form to pick "companies" the first one comes up fine. So I
check the second- fine as well. But if I click back on the first one I get
an error message saying city is missing. I go to the table and this is what
is happening:
Table dropdown box has companies:
Name Address
Alpha Omega 400 Oakdale Dr.
Benecare 500 Helendale Road, Suite 175
Better Business Bureau 150 State St.
When I get to the 3 test where I go back to see the 1st one - this is what I
see in the table:
Name Address
150 State St, Suite 175 Suite 175
150 State St, Suite 175
Better Business Bureau 150 State St.
This should NOT happen!!!!
The names of companies are being replaced by address of the 3rd company.
WHY??????
Here is my source code (which isn't much):
Option Compare Database
Private Sub Additional_Contacts_Click()
End Sub
Private Sub Form_Load()
End Sub
Private Sub Exit_Click()
On Error GoTo Err_Exit_Click
DoCmd.Quit
Exit_Exit_Click:
Exit Sub
Err_Exit_Click:
MsgBox Err.Description
Resume Exit_Exit_Click
End Sub
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Private Sub sfrm_CTAContactsView_Enter()
End Sub
Private Sub sfrm_CtaNotesView_Enter()
End Sub
The Record Source is tbl_CTAMain
Allow Filters=Y
Single Form
Views Allowed=Both
Any ideas as to why this is happening?