A
aft3rgl0w
hey everyone this is driving me nuts i can't figure out the correct syntax
basically I have a main form, where there are 2 subforms, the main one is
subfrm the secondary is subfrmflt. i have a few different forms that i call
up in the subform area, with queries for their recordsource. there is a box
on each of these forms that the query refers to (Text60). here's the catch:
since the subforms could posibly be opened in either subfrm or subfrmflt, I
need the query to be able to figure out which one is open and fill that into
the path:
Forms!frmMain!subfrm!Text60
I have a function that determines which form is visible and returns the name
of the form as a string ("subfrm" or "subfrmflt")
I need to be able to call it from a query AND in VBA code to fill in that
gap, but i constantly get errors or can't get it to recognize that it's a
function. i've tried
Like "Forms!frmmain!" & selSub() & "!Text60"
but no dice.... any ideas as to how to get this to work?
basically I have a main form, where there are 2 subforms, the main one is
subfrm the secondary is subfrmflt. i have a few different forms that i call
up in the subform area, with queries for their recordsource. there is a box
on each of these forms that the query refers to (Text60). here's the catch:
since the subforms could posibly be opened in either subfrm or subfrmflt, I
need the query to be able to figure out which one is open and fill that into
the path:
Forms!frmMain!subfrm!Text60
I have a function that determines which form is visible and returns the name
of the form as a string ("subfrm" or "subfrmflt")
I need to be able to call it from a query AND in VBA code to fill in that
gap, but i constantly get errors or can't get it to recognize that it's a
function. i've tried
Like "Forms!frmmain!" & selSub() & "!Text60"
but no dice.... any ideas as to how to get this to work?