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

Change DoCmd.OpenForm to DoCmd.OpenTable

Status
Not open for further replies.

4Wile

Programmer
Jul 16, 2001
25
US
I have expression:
DoCmd.OpenForm "PhoneList", acNormal, "", "[PhoneQuery].[State]=[Forms]![Phone3a]![ByLocation3]" This Works!

PhoneList = Report
Phone3a = Form
ByLocation3 = Selected State
PhoneQuery = All members address

I would like to change report(PhoneList) to table(PhoneTable)

Please specific..I'm newbe..


 
Try:

I have expression:
DoCmd.OpenTable "PhoneList", acNormal, "", "[PhoneQuery].[State]=[Forms]![Phone3a]![ByLocation3]" This Works!

It should work since the OpenTable switches the object from a report to opening the table by running the query.

 
I tried BUT it created a error message:
"Wrong number of argument or invalid property assignment"

Maybe I asked you for the wrong question...I need a
table that contains the addresses of the selected state.
I thought just changing OpenForm to OpenTable should do
it.

I'm still a newbie ... please be specific..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top