473,378 Members | 1,393 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,378 software developers and data experts.

Creating options menu for MS Access 2007

Hi i want to create some type of options menu for my program. My Program collects bunch of data from an automated system , records it to an access database and trends it. I want to create an option form to activate or deactivate trend entries so that way my user can change what they want to see on their chart.Also if i can give them the option to change the tag from the legend that would be perfect for that part i think i can use smart tags .For the first par what i planed was creating checkboxes and using those with if statements to add/remove columns from the pivot table. So my question is there any VB code to add remove column fields on a form.
Jan 30 '09 #1
2 5194
Stewart Ross
2,545 Expert Mod 2GB
Hi TheArda, and Welcome to Bytes.

Generally, controls are not added or taken away from forms under VBA control - such changes can only be made in the form's design view, and setting the position of the controls in relation to all others would be somewhat of a challenge.

Anyway, the much simpler way to do it is to design the form so that all necessary controls are already present, then set each control's visible property to true to show the control or false to hide it as necessary from VBA code, typically placed in the On Load or On Current events of the form concerned (depending on whether it is a change only when the form loads, or potentially for each record shown on the form).

You can also control from VBA the labelling associated with each control so that a single control can present different 'What I do' messages to users according to the circumstances you want to show. This approach was used by Access switchboards in older versions of Access (I don't use 2007 - it may or may not still be used) where the labels for the switchboard controls were the menu options presented to users, defined and stored in a table and presented according to which switchboard was being shown.

-Stewart
Jan 31 '09 #2
ChipR
1,287 Expert 1GB
It is possible to hide/show columns in a datasheet view of a table through vba with the ColumnHidden property, but I haven't used a pivot table, so I'm not sure that will work.
Feb 2 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Brian S. Smith | last post by:
Hi gang, Please help. I've been through the Access help, searched the Web, and I can't seem to get a straight answer. As the Subject line suggests, I want to run a fairly simple VB/Access Sub...
27
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same...
0
by: .nu | last post by:
#!/usr/bin/env python # -*- coding: utf-8 -*- # Name: Sleepy Hollow # Author: .nu import wx import os import sys
5
by: fly_mo | last post by:
Hello All, I have an app that has been rock solid (sofar) installed using Sagekey scripts etc and is currently a 2002/3 file. However client is upgrading to 2007 (so I have setup a test machine...
7
by: Bucs44 | last post by:
I'm very green when it comes to writing code and I'm trying to create a menu bar and pull down menus. The menu bar contains three options: File, Edit and Help. The File menu contains four options:...
5
by: tech.rawsteak | last post by:
I have a function that retrieves a user's login name from their workstation and looks it up on an employee table to return their full name (ie: jsmith -John Smith). Their full name is then...
2
by: Wayne | last post by:
I know that it is possible to force Access 2007 to the display custom menu bars for an Access database developed in an earlier version by using the customisation settings in A2007 to nominate a...
49
by: ARC | last post by:
Hello all, I have one chance to get this right, as I'm nearing a release of a program. I've looked at the database settings, and so far, have set the following: * Unchecked 'Enable design...
0
by: ehcy | last post by:
anyone plz help me.. i have here a simple program and i want to create an table cell.. what can i do?.. i will show you all my php code.. <?php $fc = "Check.txt"; $handle = fopen($fc,"r");...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.