N
NewKidontheBlock
Hi!
I'm in the process of building a customer service type of database.
On it there are two forms, say frmMain and frmReview. frmReview is a subform
of frmMain and is related to it by an AutoNumber field. Referential Integrity
is enforced. Incidentally, I've tried solving withis problem with RI off as
well as on.
frmMain contains basic customer information - name, adress, telephone etc.
frmReview contains information about the customer gleaned at various
interviews.
When using the database, the user will enter frmMain and then go into
frmReview by clicking a button at the bottom of the form. frmReview is
extensive and is on something like 20 tabs.
Before the tabbed area there is a section which shows basic information
about the client just to reassure the user they are still using the correct
record.
frmReview doesn't have any navigation buttons. I've provided customised ones
to provide a more user friendly feel.
My problem (bet you thought it was never coming) is twofold.
The First, Last, Next and Previous buttons work fine. The Add a New Review
button, however, does not.
Firstly, it doesn't populate the top row of the form with the customer's
basic details and, secondly, after inputting all the review information it
doesn't add the record.
The button's coding is as follows :
Private Sub btnAddNewReview_Click()
On Error GoTo Err_btnAddNewReview_Click
DoCmd.GoToRecord , , acNewRec
Exit_btnAddNewReview_Click:
Exit Sub
Err_btnAddNewReview_Click:
MsgBox Err.Description
Resume Exit_btnAddNewReview_Click
End Sub
Any help would be greatly appreciated.
Kind regards
Tony
I'm in the process of building a customer service type of database.
On it there are two forms, say frmMain and frmReview. frmReview is a subform
of frmMain and is related to it by an AutoNumber field. Referential Integrity
is enforced. Incidentally, I've tried solving withis problem with RI off as
well as on.
frmMain contains basic customer information - name, adress, telephone etc.
frmReview contains information about the customer gleaned at various
interviews.
When using the database, the user will enter frmMain and then go into
frmReview by clicking a button at the bottom of the form. frmReview is
extensive and is on something like 20 tabs.
Before the tabbed area there is a section which shows basic information
about the client just to reassure the user they are still using the correct
record.
frmReview doesn't have any navigation buttons. I've provided customised ones
to provide a more user friendly feel.
My problem (bet you thought it was never coming) is twofold.
The First, Last, Next and Previous buttons work fine. The Add a New Review
button, however, does not.
Firstly, it doesn't populate the top row of the form with the customer's
basic details and, secondly, after inputting all the review information it
doesn't add the record.
The button's coding is as follows :
Private Sub btnAddNewReview_Click()
On Error GoTo Err_btnAddNewReview_Click
DoCmd.GoToRecord , , acNewRec
Exit_btnAddNewReview_Click:
Exit Sub
Err_btnAddNewReview_Click:
MsgBox Err.Description
Resume Exit_btnAddNewReview_Click
End Sub
Any help would be greatly appreciated.
Kind regards
Tony