Link to home
Create AccountLog in
Avatar of EricLynnWright
EricLynnWrightFlag for United States of America

asked on

MS Access error on subform

I have a subform with the name of "frmSub"

From a button on main form, I have the following code error out:

 Me.frmSub.SourceObject  = "<<table name>>"

I tried this exact code in a smaller, sample DB and worked fine.  Moving it over to another one I get an error.


ERROR:  The setting you entered isn't valid for this property
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Me.frmSub.Form.RecordSource = "SELECT * FROM YourTable"
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of EricLynnWright

ASKER

thanks.
Thanks for the grade.  Good luck with your project.  -Jim