I am using the following code to delete some info from one of my forms and it works fine when the form is alone.
If IsNull([Forms]![qryMType]![qryMissileInfo Subform]![ComboPartName]) Or [ComboPartName] = "" Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Else
MsgBox "You still have Parts On Order for this Missile!"
End If
When I put the form into a tab control it gives me the following error:
cant find qryMType referred to
I have done a search and haven't been able to find any info on this.. I figure that I have to referrence the tab control some how but I am not sure how to.
Thanks again!
If IsNull([Forms]![qryMType]![qryMissileInfo Subform]![ComboPartName]) Or [ComboPartName] = "" Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Else
MsgBox "You still have Parts On Order for this Missile!"
End If
When I put the form into a tab control it gives me the following error:
cant find qryMType referred to
I have done a search and haven't been able to find any info on this.. I figure that I have to referrence the tab control some how but I am not sure how to.
Thanks again!