Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 20th, 2004, 08:17 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default Reports Dialog Box

Hi,

I am looking into creating a Reports Dialog Box for my Music Inventory 2001 application. Since I do not want all of the reports to show up in the dialog box, how should I name the system reports so they don't do that? I know it should start with sys. I'm clueless as to the other part of it.

Also, what SQL Statement should I use that will exclude all of the system reports? This is how I have the SQL Statement for an existing Forms Dialog Box.


SELECT [Name] FROM MSysObjects WHERE [Type]=-32768 And Not (Left([Name],1)="~" Or Left([Name],6)="sysfrm") ORDER BY [Name];



Thanks in advance,

Ben Horne
Madison Area Technical College student

-------------------------
http://community.webshots.com/user/valerian114

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes.  I\'m confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
Reply With Quote
  #2 (permalink)  
Old April 20th, 2004, 11:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm a little confused about what your problem is.
The SQL Statement you've got will not show the reports with the prefix "sysfrm", so what else do you want to do?
Do you want to put them in a listbox or combobox? in which case you'd just set that SQL statement to the RowSource of your box.

What's the problem?

I am a loud man with a very large hat. This means I am in charge
Reply With Quote
  #3 (permalink)  
Old April 21st, 2004, 12:40 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

OK,

Steven, take a look at the SQL Statement below

SELECT [Name] FROM MSysObjects WHERE [Type]=-32768 And Not (Left([Name],1)="~" Or Left([Name],6)="sysfrm") ORDER BY [Name];


That is just an example of an SQL Statement I already have in one of my databases. I need some guidance regarding changing the SQL statement so it will show all reports in the database (not including system reports).

Now here's the thing. I talked to Greg via AOL Instant Messenger last night and he said he uses the "rpt" prefix for reports. Building on that, I decided that I should use the prefix "sysrpt"

Any further help would be appreciated.

Thank you,



Ben Horne
Madison Area Technical College student

-------------------------
http://community.webshots.com/user/valerian114

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
Reply With Quote
  #4 (permalink)  
Old April 21st, 2004, 06:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about:
Code:
SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=-32764));
Or, building further:
Code:
SELECT [Name] FROM MSysObjects 
WHERE [Type]=-32764 
And Not (Left([Name],1)="~" Or Left([Name],6)="sysrpt") 
ORDER BY [Name];
Steven


I am a loud man with a very large hat. This means I am in charge
Reply With Quote
  #5 (permalink)  
Old April 21st, 2004, 08:40 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

FINALLY!:)

Just what I needed. Thanks for this (even though it took more than one post to squeeze it out of ya:(

Anyways,

Thanks again

Quote:
quote:Originally posted by Steven
 How about:
Code:
SELECT MSysObjects.Name
Code:
FROM MSysObjects
WHERE (((MSysObjects.Type)=-32764));
Or, building further:
Code:
SELECT [Name] FROM MSysObjects 
WHERE [Type]=-32764 
And Not (Left([Name],1)="~" Or Left([Name],6)="sysrpt") 
ORDER BY [Name];
Steven


I am a loud man with a very large hat. This means I am in charge
Ben Horne
Madison Area Technical College student

-------------------------
http://community.webshots.com/user/valerian114

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX Dialog Box onlyyourspiyu Ajax 0 May 19th, 2008 08:43 AM
Custom Dialog Box hari.gomatum Javascript 3 October 4th, 2007 02:09 AM
Dynamic Dialog Box peace2007 Ajax 1 September 26th, 2007 08:26 AM
Append dialog Box paul20091968 Access VBA 1 April 28th, 2006 10:56 AM
insert dialog box in a dialog box BurhanKhan Visual C++ 7 June 1st, 2004 07:53 PM



All times are GMT -4. The time now is 01:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.