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

Form's recordource property as remote sql server db?

Status
Not open for further replies.

nani

IS-IT--Management
Jul 2, 2001
8
PH
Form's recordource property as remote sql server db?

I developed my project in ADP, now it's time to deploy it as mdb (since Access runtime doesn't support ADP - why?).
Unortunately in mdb I can't set my forms' recordource properties to a remote sql server db.
Can I do it from code somehow?
 
Try the following, as the form is opened, in the FormOpen event you can probably specify the recordsource dynamically by using

me.recordsource = <name of recordsource>

If this method works, you might want to create a table with the form names in your application and their associated record sources. Then as you open each of the forms, you can assign the appropriate recordsource as it opens.

Good luck.

Scott.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top