Hi, I see hundreds of people have asked questions similar to this but I've spent all morning trying to copy theirs but I'm still stuck.
I have a mainform. In it there is a subform which displays a table. To add an entry to the table there is a 'create' command on the main form. The 'create' command brings up a form to add entries to the table. What I need is that when you close the add entry form, the table on the main form refreshes to show the new entry.
The names of all the forms (without the ' marks
) are:
main form = 'View Series List'
table = 'Series List'
subform that shows table = 'Series List subform'
add form = 'Add Series'
I think I need to change the code to close the add entry form. The code currently is:
Private Sub CloseAddnewSeries_Click()
On Error GoTo Err_CloseAddnewSeries_Click
DoCmd.Close
Exit_CloseAddnewSeries_Click:
Exit Sub
Err_CloseAddnewSeries_Click:
MsgBox Err.Description
Resume Exit_CloseAddnewSeries_Click
End Sub
really really appreciate your help- I'm also in a rush to do this for my boss!
I have a mainform. In it there is a subform which displays a table. To add an entry to the table there is a 'create' command on the main form. The 'create' command brings up a form to add entries to the table. What I need is that when you close the add entry form, the table on the main form refreshes to show the new entry.
The names of all the forms (without the ' marks

main form = 'View Series List'
table = 'Series List'
subform that shows table = 'Series List subform'
add form = 'Add Series'
I think I need to change the code to close the add entry form. The code currently is:
Private Sub CloseAddnewSeries_Click()
On Error GoTo Err_CloseAddnewSeries_Click
DoCmd.Close
Exit_CloseAddnewSeries_Click:
Exit Sub
Err_CloseAddnewSeries_Click:
MsgBox Err.Description
Resume Exit_CloseAddnewSeries_Click
End Sub
really really appreciate your help- I'm also in a rush to do this for my boss!