A
alex
Hello,
Using Access ’03…
I’m taking the advice of some in this group to try and speed up the
performance of my db. I’ve set (begun setting) the record source of
my forms/subForms at run-time.
Everything is working well…it’s when I attempt to set the record
source to “” in the unload event of the form, that I run into
problems.
When the form unloads, I get this error:
The expression you entered has a field, control, or property name that
the database can’t find.
The error takes me to this code in the same module as the unload
event:
Private Sub ckName_AfterUpdate()
Dim sfrm As SubForm
Set sfrm = Me.sfrmA
'show particular column(s)
sfrm.Form.Controls("tbCompany").ColumnHidden = _
Not Me.ckName.value
End Sub
For some reason, Access is trying to do something in the after update
event of ckName when the form unloads. This happens even when the
form is not dirty; i.e., I only open and immediately close the form.
I’ve tried using the OnClose event and get the same error.
Any thoughts?
alex
Using Access ’03…
I’m taking the advice of some in this group to try and speed up the
performance of my db. I’ve set (begun setting) the record source of
my forms/subForms at run-time.
Everything is working well…it’s when I attempt to set the record
source to “” in the unload event of the form, that I run into
problems.
When the form unloads, I get this error:
The expression you entered has a field, control, or property name that
the database can’t find.
The error takes me to this code in the same module as the unload
event:
Private Sub ckName_AfterUpdate()
Dim sfrm As SubForm
Set sfrm = Me.sfrmA
'show particular column(s)
sfrm.Form.Controls("tbCompany").ColumnHidden = _
Not Me.ckName.value
End Sub
For some reason, Access is trying to do something in the after update
event of ckName when the form unloads. This happens even when the
form is not dirty; i.e., I only open and immediately close the form.
I’ve tried using the OnClose event and get the same error.
Any thoughts?
alex