Hello,
I wrote few lines of code under Access 2000 to alter proprieties of controls in all a database. My pbl is on the 95th form, I get this error : The operation or action 'OpenForm' is not available right now. Anyone have more idea than me ?
For Each anAccessObj In appAccess.CurrentProject.AllForms
If anAccessObj.Type = acForm Then
appAccess.DoCmd.OpenForm anAccessObj.Name, acDesign
For Each aCtrl In appAccess.Forms(anAccessObj.Name).Controls
If aCtrl.Properties("ControlType".Value = 109 Then
If ToEuro Then
If aCtrl.Properties("Format".Value = "Currency" Then
aCtrl.Properties("Format".Value = "Euro"
End If
Else
If aCtrl.Properties("Format".Value = "Euro" Then
aCtrl.Properties("Format".Value = "Currency"
End If
End If
End If
Next
appAccess.DoCmd.Close acForm, anAccessObj.Name, acSaveYes
End If
Next
I wrote few lines of code under Access 2000 to alter proprieties of controls in all a database. My pbl is on the 95th form, I get this error : The operation or action 'OpenForm' is not available right now. Anyone have more idea than me ?
For Each anAccessObj In appAccess.CurrentProject.AllForms
If anAccessObj.Type = acForm Then
appAccess.DoCmd.OpenForm anAccessObj.Name, acDesign
For Each aCtrl In appAccess.Forms(anAccessObj.Name).Controls
If aCtrl.Properties("ControlType".Value = 109 Then
If ToEuro Then
If aCtrl.Properties("Format".Value = "Currency" Then
aCtrl.Properties("Format".Value = "Euro"
End If
Else
If aCtrl.Properties("Format".Value = "Euro" Then
aCtrl.Properties("Format".Value = "Currency"
End If
End If
End If
Next
appAccess.DoCmd.Close acForm, anAccessObj.Name, acSaveYes
End If
Next