I have an ms access application where i have front end and back end ... When i try to run a command on a specific form i get
" your network was interupted .To continue close and then open again "
I have front and backend running on same machine and in the same folder. I have a link manager button which basically link all tables to the front end.
Basically i am closing off the stock at the end of every month so here is the code that is in use:
And in the main form i added following:
Any help please?
" your network was interupted .To continue close and then open again "
I have front and backend running on same machine and in the same folder. I have a link manager button which basically link all tables to the front end.
Basically i am closing off the stock at the end of every month so here is the code that is in use:
Code:
Private Sub Command5_Click()
On Error GoTo Err_Command5_Click
Dim stDocName As String
stDocName = "Cl Closing 2 Opening Qry"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click
End Sub
And in the main form i added following:
Code:
Dim dbsAlwaysOpen As DAO.Database
Private Sub Form_Close()
Set dbsAlwaysOpen = Nothing
End Sub
Private Sub Form_Open(Cancel As Integer)
Set dbsAlwaysOpen = OpenDatabase("H:\EnglishBiscuit\English Biscuits.mdb", False)
End Sub
Any help please?
