Sam Summers
Registered User.
- Local time
- Today, 05:21
- Joined
- Sep 17, 2001
- Messages
- 939
Once again my senility and early dementia are preventing me from seeing this! After two days just on this pathetic task i am still no-where!
I have tried setting parameters in the query that the form to be opened is based on as well as the different lines of code attempting to achieve similar but all fails!!!!!!
If anyone can get me back on track that would be great..............
I have tried setting parameters in the query that the form to be opened is based on as well as the different lines of code attempting to achieve similar but all fails!!!!!!
Code:
Private Sub Form_DblClick(Cancel As Integer)
Dim stDocName As String
Dim dbMyDB As Database, rsMyRS As Recordset
Dim strInput As String, strFilter As String
Dim frm As Form
' strInput = ComponentID.Value
' strFilter = BuildCriteria("ComponentID", dbLong, strInput)
'rsMyRS.FindFirst strCriteria
' DoCmd.OpenForm "EditMaintenanceComponent", , , "MaintenanceListSubform.[VesselID]" & " MaintenanceListSubform.[ComponentID]"
' DoCmd.OpenForm "EditMaintenanceComponent", , , "MaintenanceListSubform.[VesselID]='" & Me![VesselID] & "' AND MaintenanceListSubform.[ComponentID]='" & Me![ComponentID] & "'"
DoCmd.OpenForm "EditMaintenanceComponent", acNormal
' Set frm = Forms![EditMaintenanceComponent] ' Build criteria string.
' strFilter = BuildCriteria("ComponentID", dbLong, strInput) ' Set Filter property to apply filter.
' frm.Filter = strFilter
'Set FilterOn property; form now shows filtered records.
' frm.FilterOn = True
End Sub
If anyone can get me back on track that would be great..............
