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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabular Form Record Source

Status
Not open for further replies.

Russie

Programmer
Dec 24, 2000
104
US
Hi.

I have a tabular sub-form that is requeried when a routine is run.

Is there anyway that I can have a dynamic record source for my sub-form...i.e. if condition = true then strSQL=x and if condition = false Then strSQL = Y.

I'm refreshing the sub form using Me.subform.Requery. Is there any way that I can manipulate its record source from my parent form?

A star for a right answer..or a star for even a steer that helps me to solve the problem.

Thanks very much.

Russie

 
You can set the recordsource for the subform the same way you requery...me.subform.recordsource=... just put it in the if statement like you say. Let me know if anything is confusing...hope that helps.

Kevin
 
Hi godawgs

I tried it and it didn't work..Recordsource isn't an available method of Me.Subform.

Does anyone else know of setting a recordsource on a subform?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top