473,416 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Ambitious report idea......... "Favorites"

Greetings

This is rather ambitious:

I have a split database that contains many different reports. I have a
form that the end user launches the reports from. They select the
report criteria from several combo boxes, click a "Go" command button
to launch the report. I then pass the report criteria to various
report "templates" as an SQL string.

I would like to have a section of the report form, or a new form, have
command buttons for the end user to store their most commonly used
combinations of reports/criteria. They would select their criteria,
then press an "Add to Favorites" button, be prompted for a "favorites
name", then click OK. The end result would create a new command
button,(or make an existing one visible), then change a label to their
chosen "Favorites" name. Obviously, their criteria would need to be
stored, also.

I am flexible on how I accomplish this. I am just looking for some
basic outlines on how this might be done. I started an attempt at this
with a command button that had a complex IIf behind it, looking at the
machine name, but it quickly got too confusing!

Has anyone here ever done something similar to this? Or, am I outside
the realm of Access?

I am not a "power programmer", but I can usually muddle my through
relatively complex stuff. Also, I would prefer not to involve Access
security in this, but if necessary.........

Any ideas would be appreciated.

Thanks in advance,

Dennis
Nov 13 '05 #1
9 1720
rkc

"Dennis Ruppert" <dr******@ruppertweb.com> wrote in message
news:f7************************@posting.google.com ...
Greetings

This is rather ambitious:

I have a split database that contains many different reports. I have a
form that the end user launches the reports from. They select the
report criteria from several combo boxes, click a "Go" command button
to launch the report. I then pass the report criteria to various
report "templates" as an SQL string.

I would like to have a section of the report form, or a new form, have
command buttons for the end user to store their most commonly used
combinations of reports/criteria. They would select their criteria,
then press an "Add to Favorites" button, be prompted for a "favorites
name", then click OK. The end result would create a new command
button,(or make an existing one visible), then change a label to their
chosen "Favorites" name. Obviously, their criteria would need to be
stored, also.

I am flexible on how I accomplish this. I am just looking for some
basic outlines on how this might be done. I started an attempt at this
with a command button that had a complex IIf behind it, looking at the
machine name, but it quickly got too confusing!

Has anyone here ever done something similar to this? Or, am I outside
the realm of Access?

I am not a "power programmer", but I can usually muddle my through
relatively complex stuff. Also, I would prefer not to involve Access
security in this, but if necessary.........


I'm not sure I understand what the stumbiling block is. You obviously
already know how to open a report after building a query from selected
criteria. You will already have the recordsource string built when the user
wants to save it. All that remains is to store the report name and the
recordsource string in a local table instead of the backend.

Nov 13 '05 #2
Mal
dr******@ruppertweb.com (Dennis Ruppert) wrote in message news:<f7************************@posting.google.co m>...
Greetings

This is rather ambitious:

I have a split database that contains many different reports. I have a
form that the end user launches the reports from. They select the
report criteria from several combo boxes, click a "Go" command button
to launch the report. I then pass the report criteria to various
report "templates" as an SQL string.

I would like to have a section of the report form, or a new form, have
command buttons for the end user to store their most commonly used
combinations of reports/criteria. They would select their criteria,
then press an "Add to Favorites" button, be prompted for a "favorites
name", then click OK. The end result would create a new command
button,(or make an existing one visible), then change a label to their
chosen "Favorites" name. Obviously, their criteria would need to be
stored, also.

I am flexible on how I accomplish this. I am just looking for some
basic outlines on how this might be done. I started an attempt at this
with a command button that had a complex IIf behind it, looking at the
machine name, but it quickly got too confusing!

Has anyone here ever done something similar to this? Or, am I outside
the realm of Access?

I am not a "power programmer", but I can usually muddle my through
relatively complex stuff. Also, I would prefer not to involve Access
security in this, but if necessary.........

Any ideas would be appreciated.

Thanks in advance,

Dennis

Rather than a command button I would use a list box.
That way you don't have to guess how many buttons might be needed (to
either hide them, or allow for the space on screen)

By using a list box you could store the SQL string in a 3 field table.
(IDNum(Primary Key), FavoriteName, SqlText)
Then display the FavoriteName in the list box, but use the sqlText
column (hidden) in the GO command procedure.

You will need to explore storing and handling "" marks, but I'm
guessing that you probably have already tackled that as you gather
this info and pass it on in your current method.

I have used this approach to have a "GO" button that opens reports, or
forms as selected from a list box. I have another column that defines
the TYPE form, report etc. that I then test for and do either a
docmd.openform.... or openreport....
HTH
Mal.
Nov 13 '05 #3
rkc

Well...........I guess I was just looking for a "concept", thinking
someone else may have done something similar. The front end is under
almost constant development, so I have to find a way to let individual
users store their most common reports without re-doing it when the front
end is replaced. perhaps storing the report name and string on their own
table in the backend.

I am unsure how to manipulate the form components of this idea. In other
words, labeling a button as "My Yield Report" for user Joe Blow, only
visible to that user. Seperate forms for each user? A common form with
some IIf stuff behind it?

Obviously, this is just in the conceptual stage right now. I will
continue pondering until I come up with something. I just thought
someone out there might see this , and say "Hey! I did this once!"

Thanks for your reply.

Dennis
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4
HTH

I like that idea. Then I could just filter the list so "My Yield
Report", or whatever, is visible to the appropriate operator.

I suppose I could prompt them when they save their "favorite" for a
FavoriteName, then capture their user ID and save that to the same table
to use in the filtering.
Anyway, thanks for the idea!

Dennis

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #5
HTH

I like that idea. Then I could just filter the list so "My Yield
Report", or whatever, is visible to the appropriate operator.

I suppose I could prompt them when they save their "favorite" for a
FavoriteName, then capture their user ID and save that to the same table
to use in the filtering.
Anyway, thanks for the idea!

Dennis

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #6
Dennis Ruppert <dr******@ruppertweb.com> wrote in message news:<40**********************@news.newsgroups.ws> ...
HTH

I like that idea. Then I could just filter the list so "My Yield
Report", or whatever, is visible to the appropriate operator.

I suppose I could prompt them when they save their "favorite" for a
FavoriteName, then capture their user ID and save that to the same table
to use in the filtering.
Anyway, thanks for the idea!

Dennis

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


Hey! I did this once. :-)

Instead of saving the entire SQL string, it may be advantageous to
store the values that were placed in the various criteria
boxes/checkboxes. When the user selects the predefined name from a
combobox, you fill in the values selected previously and let the form
create the SQL string again based on the predefined values or on
modified ones. If you want users to have their own individual list of
custom selections, you could put the table in a local database such
as: C:\Databases\Custom.mdb and the link will find each user's custom
definitions. When the front end gets replaced it won't wipe out the
custom table.

James A. Fortune
Nov 13 '05 #7
Dennis,
Methinks I'd build my own switchboard and keep a table tracking user, object
name, and a count of how many times an object has been accessed by that
user. Then favorites would be the objects that get used the most. You
could select for the top n objects and order by usage count in descending
order so the most frequently used show up first. I'd probably give the user
a combo box that let them sort by frequency of use or object name similar to
what you see on shopping web sites.

"Dennis Ruppert" <dr******@ruppertweb.com> wrote in message
news:f7************************@posting.google.com ...
Greetings

This is rather ambitious:

I have a split database that contains many different reports. I have a
form that the end user launches the reports from. They select the
report criteria from several combo boxes, click a "Go" command button
to launch the report. I then pass the report criteria to various
report "templates" as an SQL string.

I would like to have a section of the report form, or a new form, have
command buttons for the end user to store their most commonly used
combinations of reports/criteria. They would select their criteria,
then press an "Add to Favorites" button, be prompted for a "favorites
name", then click OK. The end result would create a new command
button,(or make an existing one visible), then change a label to their
chosen "Favorites" name. Obviously, their criteria would need to be
stored, also.

I am flexible on how I accomplish this. I am just looking for some
basic outlines on how this might be done. I started an attempt at this
with a command button that had a complex IIf behind it, looking at the
machine name, but it quickly got too confusing!

Has anyone here ever done something similar to this? Or, am I outside
the realm of Access?

I am not a "power programmer", but I can usually muddle my through
relatively complex stuff. Also, I would prefer not to involve Access
security in this, but if necessary.........

Any ideas would be appreciated.

Thanks in advance,

Dennis

Nov 13 '05 #8

James

I knew someone had to have done this!

I like your idea, it should be much easier than storing and passing the
actual strings themselves.

About the Custom.mdb; In the "old days", programs used .ini files to
store stuff. It seems I remember mentions of this with Access apps, but
I haven't really investigated this any further. My app has other per
user parameters that I currently handle with IIf and Case statements. It
is getting to be a little high maintenance.

Is an.ini a practical solution, or is a seperate .mdb the best solution.
Am I correct in assuming that either method will be easy to "package",
(I use MOD XP)?

Also, I have tried to stay away from making this app dependant on Access
Security, for any of it's functionality, as eventually it may be
distributed to customers, on non-networked PCs. Am I losing out on some
"workgroup file" related options for customizations per user, as I am
trying to do here?

Thanks,

Dennis
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #9
Dennis Ruppert <dr******@ruppertweb.com> wrote in message news:<40**********************@news.newsgroups.ws> ...
James

I knew someone had to have done this!

I like your idea, it should be much easier than storing and passing the
actual strings themselves.

About the Custom.mdb; In the "old days", programs used .ini files to
store stuff. It seems I remember mentions of this with Access apps, but
I haven't really investigated this any further. My app has other per
user parameters that I currently handle with IIf and Case statements. It
is getting to be a little high maintenance.

Is an.ini a practical solution, or is a seperate .mdb the best solution.
Am I correct in assuming that either method will be easy to "package",
(I use MOD XP)?

Also, I have tried to stay away from making this app dependant on Access
Security, for any of it's functionality, as eventually it may be
distributed to customers, on non-networked PCs. Am I losing out on some
"workgroup file" related options for customizations per user, as I am
trying to do here?

Thanks,

Dennis


Although using a .ini file sounds a little backward I have never tried
it with Access and don't know how well it would work. A local .mdb
isn't all that great of an idea either. It was just a quick and dirty
way to do it. I didn't spend much time devising the best way to do
it. For most situations, using a single table linked to a shared BE
and filtering by the user should be O.K. I can easily see how other
kinds of user specific information could get to be high maintenance.
You can use an API call to get their network login name so you aren't
dependent on having Access Security. Instead of linking to a local
..mdb you could run code that exports the local tables to the local
..mdb. Then when you have replaced the FE you run some more code that
gets the local table data back. I dunno.

James A. Fortune
Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
15
by: adomas.paltanavicius | last post by:
Hi there, I am quite new to Python, and have a straight & simple question. In C, there is for (init; cond; advance). We all know that. In Python there are two ways to loop over i=A..B...
2
by: Simon Wigzell | last post by:
What is the call? Better yet is there a link to a page that describes all the possible javascript calls to the various browser menu items and explains compatibility across different browsers?...
25
by: delerious | last post by:
I see some code examples like this: <DIV onmouseover="this.style.background='blue'"> and other code examples like this: <DIV onmouseover="javascript:this.style.background='blue'"> Which...
3
by: Robert Oschler | last post by:
I have a Javascript bookmarklet that people want to add to their bookmarks. In Win 2k and below, addToFavorites() works fine. In Windows XP it generates a permission error and does nothing except...
0
by: Mark Shehan | last post by:
Hi all I have an app that has a web browser control embedded in a windows form. I have no problem in loading the favorites into a list and getting them to work but does anyone know of an easy way...
1
by: Jordan | last post by:
I would like to add an icon to my website that would show if the site is bookmarked. I found this tag on the web: <link href="images/favicon.ico" rel="shortcut icon"> However, Visual Studio...
1
by: j.eckles | last post by:
I'm trying to determine if there is a way in VBScript, perhaps via ADO or DAO, to access what I'll term MS Access "object groups". What I mean by "object groups" are the folders that you see under...
9
by: Mizipzor | last post by:
Is there a way to "subscribe" to individual topics? im currently getting bombarded with daily digests and i wish to only receive a mail when there is activity in a topic that interests me. Can this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.