Sam Summers
Registered User.
- Local time
 - Today, 13:44
 
- Joined
 - Sep 17, 2001
 
- Messages
 - 939
 
Hello once again,
Been trying all kinds of things to achieve this nut so far not successful.
I have a main form 'ViewVessel' which has a tabbed form on it 'TabCtl15' in one of the tabs i have two subforms 'MaintenanceListSubform' and 'ServiceListSubform'
What i want to do is to mainly change the text in the textbox 'NewStatus' on the 'ViewVessel form if both of these subforms have no data.
This is the code i have been attempting to achieve this with:
	
	
	
		
Is this possible?
Many thanks in advance
 Been trying all kinds of things to achieve this nut so far not successful.
I have a main form 'ViewVessel' which has a tabbed form on it 'TabCtl15' in one of the tabs i have two subforms 'MaintenanceListSubform' and 'ServiceListSubform'
What i want to do is to mainly change the text in the textbox 'NewStatus' on the 'ViewVessel form if both of these subforms have no data.
This is the code i have been attempting to achieve this with:
		Code:
	
	
	Private Sub Form_Load()
    Dim rst As DAO.Recordset
    
    Set rst = Forms!ViewVessel.MaintenanceListSubform.Form.RecordsetClone
    rst.MoveLast
    If Me.MaintenanceListSubform.Form.RecordsetClone.RecordCount + Me.ServiceListSubform.Form.RecordsetClone.RecordCount = 0 Then
    Forms![ViewVessel]![NewStatus].Text = "In Service"
    Else
    Set rst = Nothing
    
End If
End Sub
	Is this possible?
Many thanks in advance