Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with recordsource in a subform... 1

Status
Not open for further replies.

sagamw

Technical User
Nov 11, 2009
104
GR
I have a form "Eikones" and a subform as a continuous form called "EikThumb".

The source of my subform "EikThumb" is a query, but in some point I want to change the source of my subform, to another query "Query2".

I am trying
Code:
=[forms]![Eikona]![EikThumb].RecordSource = "Query2"
but It doesn't work and I get Error 438 Object doesnt support this property or method.

Am I doing something wrong?
.
.
 
VBA code:
Code:
Forms!Eikona!EikThumb.Form.RecordSource = "Query2"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thank you PHV!
You saved me a lot of trouble today (twice!!)

I guess I have a lot to learn about the syntax of VBA, SQL etc.
:-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top