G
Guest
This has been ongoing for the past 2 weeks and I'm tired of having to go into
the Table and Fixing it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have a form with an Unbound Combo Box. Every dam time I go and run a test
on 3 companies the data gets messed up. Once this database goes live WE
DON'T WANT TO HAVE THIS KEEP HAPPENING as the Users WILL NOT KNOW HOW TO FIX
IT!!!!!!!!!!!!!!!!!
I've have asked several times on this board on how to fix this and I haven't
gotten an answer yet that will fix the problem.
All the fields keeps getting overwritten including the IDnumber which is my
primary key.
This form is used for SEARCHING ONLY. It should NOT be Updating, deleting
or editing or doing anything but to SEARCH ONLY!!!!
Here is the code for the Form:
Option Compare Database
Private Sub Additional_Contacts_Click()
On Error GoTo Err_Additional_Contacts_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stWhere As String
stDocName = "sfrm_CTAContactsView"
stWhere = "[IDNumber] = '" & Me!Number_Text & "'"
DoCmd.OpenForm stDocName, acNormal, stLinkCriteria, stWhere
Exit_Additional_Contacts_Click:
Exit Sub
Err_Additional_Contacts_Click:
MsgBox Err.Description
Resume Exit_Additional_Contacts_Click
End Sub
Private Sub CTA_Notes_Click()
On Error GoTo Err_CTA_Notes_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stWhere As String
stDocName = "sfrm_CTANotesView"
stWhere = "[IDNumber] = '" & Me!Number_Text & "'"
DoCmd.OpenForm stDocName, acNormal, stLinkCriteria, stWhere
Exit_Additional_Contacts_Click:
Exit Sub
MsgBox Err.Description
Resume Exit_Additional_Contacts_Click
End Sub
Private Sub Detail_Click()
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
Me.Undo
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Private Sub Form_Load()
End Sub
I also have a macro(s) that will insert all the info from the combo box into
the fields on the form. But I'm NOT updating anything here. This is just
to view what the info is.
I've also included that when you close the form you DON"T Update/Delete
ANYTHING. But it doesn't work. The properties for the fields are Locked.
In the form the properties for Allow Edits, Deletions, Additions are equal
to Yes. I tried to change this to NO and the combo box didn't work. I don't
want the form to DELETE OR ADD OR DO EDITS JUST TO DO A SEARCH!!!!!!!!
Why is this so hard to fix? Any ideas or better yet what is the solution
to this?
the Table and Fixing it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have a form with an Unbound Combo Box. Every dam time I go and run a test
on 3 companies the data gets messed up. Once this database goes live WE
DON'T WANT TO HAVE THIS KEEP HAPPENING as the Users WILL NOT KNOW HOW TO FIX
IT!!!!!!!!!!!!!!!!!
I've have asked several times on this board on how to fix this and I haven't
gotten an answer yet that will fix the problem.
All the fields keeps getting overwritten including the IDnumber which is my
primary key.
This form is used for SEARCHING ONLY. It should NOT be Updating, deleting
or editing or doing anything but to SEARCH ONLY!!!!
Here is the code for the Form:
Option Compare Database
Private Sub Additional_Contacts_Click()
On Error GoTo Err_Additional_Contacts_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stWhere As String
stDocName = "sfrm_CTAContactsView"
stWhere = "[IDNumber] = '" & Me!Number_Text & "'"
DoCmd.OpenForm stDocName, acNormal, stLinkCriteria, stWhere
Exit_Additional_Contacts_Click:
Exit Sub
Err_Additional_Contacts_Click:
MsgBox Err.Description
Resume Exit_Additional_Contacts_Click
End Sub
Private Sub CTA_Notes_Click()
On Error GoTo Err_CTA_Notes_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stWhere As String
stDocName = "sfrm_CTANotesView"
stWhere = "[IDNumber] = '" & Me!Number_Text & "'"
DoCmd.OpenForm stDocName, acNormal, stLinkCriteria, stWhere
Exit_Additional_Contacts_Click:
Exit Sub
MsgBox Err.Description
Resume Exit_Additional_Contacts_Click
End Sub
Private Sub Detail_Click()
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
Me.Undo
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Private Sub Form_Load()
End Sub
I also have a macro(s) that will insert all the info from the combo box into
the fields on the form. But I'm NOT updating anything here. This is just
to view what the info is.
I've also included that when you close the form you DON"T Update/Delete
ANYTHING. But it doesn't work. The properties for the fields are Locked.
In the form the properties for Allow Edits, Deletions, Additions are equal
to Yes. I tried to change this to NO and the combo box didn't work. I don't
want the form to DELETE OR ADD OR DO EDITS JUST TO DO A SEARCH!!!!!!!!
Why is this so hard to fix? Any ideas or better yet what is the solution
to this?