I keep getting an invalid property assignment error when tring to
reference a subform.
All I am trying to do is substitute this:
Forms![frm_ActionItems]![frm_ActionItems_Sub].SetFocus
for this:
FormAndSubForm.SetFocus
Unforturnately no luck thus far. I can't even get this to compile:
Dim strSubForm as string
frmSubForm as form
frmSubForm = Forms(strSubForm)
Is there something wrong with my references? I have had to shift the
priority of the reference Microsoft Visual Basic for Applications
Exstensibility up and down to get other things to work properly. So
I'm wondering if that may be the cause because I see lot's of the above
code referenced in the forum. But I can't get it to compile. What's
up with that? All this headache is just for exporting subform
datasheet to excel. I am using a function posted as "XLPaste" and it
works fine in the form's code but I would like to make a more robust
function out of it by passing the name of the datasheet. If anyone
already has the snippet for this or can point me in the right direction
that would be great. Thanks.