Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Is there a way ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 30593 of 31576
Post > Topic >>

Is there a way to open a re****t in preview or re****t mode and have it

by evenlater <evancater@[EMAIL PROTECTED] > Jun 26, 2008 at 02:41 PM

Here's what I'm trying to do. All of the re****ts in my Access 2007
application are opened via a dialog box that allows the user to pick
filter criteria. On this dialog box there is a "Sort" button. When the
user clicks on that button, a second dialog box opens that allows the
user to choose the fields they want to order by. The sort dialog box
form has four combo boxes containing a field list from the
recordsource of the re****t. The rowsources for these combo boxes are
populated when the user clicks the Sort button, and in order for this
to work the original dialog box needs to know what the recordsource of
the re****t is.

The way I was doing this was for the OnClick event of the Sort button
to open the re****t invisibly in design view, check the recordsource of
the re****t, and then close the re****t again. This is the VBA statement
I was using to open the re****t:

DoCmd.OpenRe****t strRe****t, acViewDesign, , , acHidden

Well, here's where the problem comes up. Once I convert the accdb file
to an accde file, I can't open the form in design view anymore. I have
tried opening the re****t in Re****t and Print Preview using the
acHidden variable for the WindowMode argument, but the re****t is
visible when I do this.

Is there a way to open a re****t invisibly in preview or re****t mode?
Or is there a better way to determine a re****t's recordsource in code
without opening the re****t at all?

Thanks!
 




 11 Posts in Topic:
Is there a way to open a report in preview or report mode and ha
evenlater <evancater@[  2008-06-26 14:41:25 
Re: Is there a way to open a report in preview or report mode an
"ARC" <PCESo  2008-06-26 18:18:56 
Re: Is there a way to open a report in preview or report mode an
"Albert D. Kallal&qu  2008-06-27 02:49:19 
Re: Is there a way to open a report in preview or report mode an
Kelii <keliie@[EMAIL P  2008-06-26 20:00:05 
Re: Is there a way to open a report in preview or report mode an
evenlater <evancater@[  2008-06-26 21:49:04 
Re: Is there a way to open a report in preview or report mode an
"Albert D. Kallal&qu  2008-06-27 09:30:23 
Re: Is there a way to open a report in preview or report mode an
Salad <oil@[EMAIL PROT  2008-06-27 08:40:03 
Re: Is there a way to open a report in preview or report mode an
"paii, Ron" <  2008-06-27 11:30:56 
Re: Is there a way to open a report in preview or report mode an
"Tony Toews [MVP]&qu  2008-06-28 02:09:01 
Re: Is there a way to open a report in preview or report mode an
Kelii <keliie@[EMAIL P  2008-06-27 12:14:51 
Re: Is there a way to open a report in preview or report mode an
evenlater <evancater@[  2008-06-30 19:00:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:27:27 CST 2008.