Grimmabeast
Registered User.
- Local time
- Today, 15:29
- Joined
- Dec 4, 2018
- Messages
- 16
When I try to bring up a database it gives me A error "Your Machinery Customers database or project contains a missing or broekn reference to the file 'FPDTC.DLL' version 1.0. To ensure that your database or project works properly, you must fix this reference." I clicked on "Show Help" and I went to Tools>References and unchecked the reference like it said. I looked up the FTDTC.DLL and it said that it was for another program, so I thought I was safe. It did not fix it. When I try to compile the database it shows, "Compile Error, Cannot find project or library". I clicked on help and all it tells me is to go to reference and uncheck the box that is showing missing. The references is now grayed out and I cannot select it. In the window it shows the following:
Sub Form_Current()
On Error GoTo Form_Current_Err
If ChildFormIsOpen() Then FilterChildForm
Form_Current_Exit:
Exit Sub
Form_Current_Err:
MsgBox Error$
Resume Form_Current_Exit
End Sub
Sub ToggleLink_Click()
On Error GoTo ToggleLink_Click_Err
If ChildFormIsOpen() Then
CloseChildForm
Else
OpenChildForm
FilterChildForm
End If
ToggleLink_Click_Exit:
Exit Sub
ToggleLink_Click_Err:
MsgBox Error$
Resume ToggleLink_Click_Exit
End Sub
Private Sub FilterChildForm()
If Me.NewRecord Then
Forms![Service Work Orders 2].DataEntry = True
Else
Forms![Service Work Orders 2].Filter = "[CustomerID] = " & Me.[CustomerID]
Forms![Service Work Orders 2].FilterOn = True
End If
End Sub
Private Sub OpenChildForm()
DoCmd.OpenForm "Service Work Orders 2"
If Not Me.[ToggleLink] Then Me![ToggleLink] = True
End Sub
Private Sub CloseChildForm()
DoCmd.Close acForm, "Service Work Orders 2"
If Me![ToggleLink] Then Me![ToggleLink] = False
End Sub
Private Function ChildFormIsOpen()
ChildFormIsOpen = (SysCmd(acSysCmdGetObjectState, acForm, "Service Work Orders 2") And acObjStateOpen) <> False
End Function
Private Sub Combo38_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo38], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo40_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo40], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Add_New_Customer_Click()
On Error GoTo Err_Add_New_Customer_Click
DoCmd.GoToRecord , , acNewRec
Exit_Add_New_Customer_Click:
Exit Sub
Err_Add_New_Customer_Click:
MsgBox Err.Description
Resume Exit_Add_New_Customer_Click
End Sub
Private Sub Command46_Click()
On Error GoTo Err_Command46_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Command46_Click:
Exit Sub
Err_Command46_Click:
MsgBox Err.Description
Resume Exit_Command46_Click
End Sub
Private Sub Search1_Click()
On Error GoTo Err_Search1_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Search1_Click:
Exit Sub
Err_Search1_Click:
MsgBox Err.Description
Resume Exit_Search1_Click
End Sub
Private Sub Combo48_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo48], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub List50_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![List50], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo52_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo52], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Customer_Report_Click()
On Error GoTo Err_Customer_Report_Click
Dim stDocName As String
stDocName = "Service Work Orders"
DoCmd.OpenReport stDocName, acPreview
Exit_Customer_Report_Click:
Exit Sub
Err_Customer_Report_Click:
MsgBox Err.Description
Resume Exit_Customer_Report_Click
End Sub
Sub Form_Current()
On Error GoTo Form_Current_Err
If ChildFormIsOpen() Then FilterChildForm
Form_Current_Exit:
Exit Sub
Form_Current_Err:
MsgBox Error$
Resume Form_Current_Exit
End Sub
Sub ToggleLink_Click()
On Error GoTo ToggleLink_Click_Err
If ChildFormIsOpen() Then
CloseChildForm
Else
OpenChildForm
FilterChildForm
End If
ToggleLink_Click_Exit:
Exit Sub
ToggleLink_Click_Err:
MsgBox Error$
Resume ToggleLink_Click_Exit
End Sub
Private Sub FilterChildForm()
If Me.NewRecord Then
Forms![Service Work Orders 2].DataEntry = True
Else
Forms![Service Work Orders 2].Filter = "[CustomerID] = " & Me.[CustomerID]
Forms![Service Work Orders 2].FilterOn = True
End If
End Sub
Private Sub OpenChildForm()
DoCmd.OpenForm "Service Work Orders 2"
If Not Me.[ToggleLink] Then Me![ToggleLink] = True
End Sub
Private Sub CloseChildForm()
DoCmd.Close acForm, "Service Work Orders 2"
If Me![ToggleLink] Then Me![ToggleLink] = False
End Sub
Private Function ChildFormIsOpen()
ChildFormIsOpen = (SysCmd(acSysCmdGetObjectState, acForm, "Service Work Orders 2") And acObjStateOpen) <> False
End Function
Private Sub Combo38_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo38], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo40_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo40], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Add_New_Customer_Click()
On Error GoTo Err_Add_New_Customer_Click
DoCmd.GoToRecord , , acNewRec
Exit_Add_New_Customer_Click:
Exit Sub
Err_Add_New_Customer_Click:
MsgBox Err.Description
Resume Exit_Add_New_Customer_Click
End Sub
Private Sub Command46_Click()
On Error GoTo Err_Command46_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Command46_Click:
Exit Sub
Err_Command46_Click:
MsgBox Err.Description
Resume Exit_Command46_Click
End Sub
Private Sub Search1_Click()
On Error GoTo Err_Search1_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Search1_Click:
Exit Sub
Err_Search1_Click:
MsgBox Err.Description
Resume Exit_Search1_Click
End Sub
Private Sub Combo48_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo48], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub List50_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![List50], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo52_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CustomerID] = " & Str(Nz(Me![Combo52], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Customer_Report_Click()
On Error GoTo Err_Customer_Report_Click
Dim stDocName As String
stDocName = "Service Work Orders"
DoCmd.OpenReport stDocName, acPreview
Exit_Customer_Report_Click:
Exit Sub
Err_Customer_Report_Click:
MsgBox Err.Description
Resume Exit_Customer_Report_Click
End Sub