473,809 Members | 2,780 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Switchboard: Entering data on many forms for 1 client

99 New Member
Ok.

I am trying to plan ahead on how to make my DB the most effective. I’ve decided to use a Switchboard for this. So I know the basic principles of them as well as how to make 1. What I need help with is a control on it. My DB deals with clients, which will have to have information entered into forms for each 1. There is going to be something like 20 forms? Maybe a little less. I want to make the switchboard have a little button: Enter Information (original isn’t it). When this is selected, it will show all the links to the forms.

Issue: I want to have something where when this part is opened, the person can select the ClientID. Then for every link to the forms afterwards, it will open that specific client. Until a new client is selected in the same manner. (Without this, when the forms are opened, they will show all clients, and you will have to scroll through all the records to get the 1 you want. (There will be anywhere from about 100-2000 clients).

So, is this possible? Any other ideas or suggestions on how to accomplish this in this manner, or in a different 1 that will result in the same solution are welcome. Thanks for the help guys (and girls).
Dec 11 '06 #1
9 1558
NeoPa
32,579 Recognized Expert Moderator MVP
As long as you have a globally available variable (or function) that you can access, the Filter properties can always reflect the client chosen.
Another alternative is to pass it in the 'OpenArgs' parameter to every form opened.
Dec 11 '06 #2
robertmeyer1
99 New Member
Ok, is a globally available variable like a ClientID? If so, then I believe that I have 1. If not, then would you elaborate. The other option would work as well. Whichever ya’ll recommend is what I will try to use. Thanks.
Dec 11 '06 #3
NeoPa
32,579 Recognized Expert Moderator MVP
Ok, is a globally available variable like a ClientID? If so, then I believe that I have 1. If not, then would you elaborate. The other option would work as well. Whichever ya’ll recommend is what I will try to use. Thanks.
If you create a Public function in a module you can get it to set and/or return a variable.
This will be visible to both VBA code and SQL.
I'm not sure, thinking about it, that I ever got a Public variable to work properly.
OpenArgs introduces more work and maintenance.
Dec 12 '06 #4
robertmeyer1
99 New Member
If you create a Public function in a module you can get it to set and/or return a variable.
This will be visible to both VBA code and SQL.
I'm not sure, thinking about it, that I ever got a Public variable to work properly.
OpenArgs introduces more work and maintenance.
Ok, based off another thread I have going, (Navigating through Forms, Based on controls) I know that the Global Variable is set up in a module. I am in the process of trying to create an Global Variable for Clients, so if that is the same as what would be needed here, I may want to go that route since then I would be using the same principles for my DB. But again, I am an open person. It sounds like Openargs would be more work to keep working, so if at all possible, I would like to avoid that method. Let me know what you think would work best and I'll give it a shot
Dec 12 '06 #5
NeoPa
32,579 Recognized Expert Moderator MVP
If you find that you can get a Global (Public) variable to work for you then this is your easiest route.
If not, then a Public Function will have to do (can provide further help if required).
Use OpenArgs only if it logically warrants it (maybe a paired couple of forms or something similar).
In short, you want to use a Public variable.
Dec 12 '06 #6
robertmeyer1
99 New Member
Let’s make sure I understand. A Global Variable would be created in a module:

Option Compare Database

Global coClient As String
Next I need to create some sort of selection/entry for the ClientAutoID. On this form I would set code to something like this:

Private Sub ClientSelection _Click()
coClient = Me.ClientAutoID
End Sub

This allows for Access to “remember” the clienautoId I selected and any forms opened after this should go to this client?

How would you de-select the client and choose someone else? I checked out this website and will do some more research before trying to create 1.

[/link: http://www.blueclaw-db.com/access_da...l_variable.htm]
Dec 13 '06 #7
NeoPa
32,579 Recognized Expert Moderator MVP
Let’s make sure I understand. A Global Variable would be created in a module:

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2.  
  3. Global coClient As String
Next I need to create some sort of selection/entry for the ClientAutoID. On this form I would set code to something like this:

Expand|Select|Wrap|Line Numbers
  1. Private Sub ClientSelection_Click()
  2. coClient = Me.ClientAutoID
  3. End Sub
This allows for Access to “remember” the clienautoId I selected and any forms opened after this should go to this client?

How would you de-select the client and choose someone else? I checked out this website and will do some more research before trying to create 1.

[/link: http://www.blueclaw-db.com/access_da...l_variable.htm]
Robert, If you check on that web link you'll see they define the variable using Public rather than Global. Global is from an earlier version and only provided for compatibility.
Expand|Select|Wrap|Line Numbers
  1. Private Sub ClientAutoID_AfterUpdate()
  2. coClient = Me.ClientAutoID
  3. End Sub
Is where you want the trigger for the update.
coClient must not be defined in the form's module.
Dec 14 '06 #8
robertmeyer1
99 New Member
Robert, If you check on that web link you'll see they define the variable using Public rather than Global. Global is from an earlier version and only provided for compatibility.
Expand|Select|Wrap|Line Numbers
  1. Private Sub ClientAutoID_AfterUpdate()
  2. coClient = Me.ClientAutoID
  3. End Sub
Is where you want the trigger for the update.
coClient must not be defined in the form's module.
Very cool. It will take probably take me a little while before I'm able to test this properly. I'll let you know how it wokrs out when the time comes.
Dec 14 '06 #9
NeoPa
32,579 Recognized Expert Moderator MVP
Very cool. It will take probably take me a little while before I'm able to test this properly. I'll let you know how it wokrs out when the time comes.
No Problem - Yes feedback is always welcome.
Dec 14 '06 #10

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

Similar topics

13
5835
by: Mark | last post by:
I am looking for a switchboard creator alternative for my MDB. Can anyone help me? Thanks for your help, Mark
1
7243
by: ogilby1 | last post by:
Does Access allow a query to be listed on the switchboard? Does Access allow a table to be opened in datasheet view from the switchboard? I have an application where users enter new data, print reports, (based on a parameter query), and edit previously entered data in form view.
2
2174
by: Terry | last post by:
I have created a switchboard, created using Access 2000. If I put the mouse anywhere on the form, outside of the checkboxes and scroll the wheel backwards, I get the following error. Run-Time Error '-2147217900(8004e14)': Syntax Error (missing operator) in query expression in '>0 and =' I know that the Switchboard probably doesn't cater for this event but sometimes you can't help twiddling the wheel can you?
1
4684
by: Richard Holliingsworth | last post by:
Hello: Thanks for reading this. I'm running A2002 as a front end to SQL Server 7.0. I've finished building my tables, views, forms and reports. Now I want to build the Switcboard form. But when I go to "Tools" - "Database Utilities" ----- the "Switchboard Manager" is grayed out. Any ideas why??? And how to turn it back on????
1
1527
by: Big Time | last post by:
I have a form that is based on a parameter query that needs to be opened in datasheet view. I have set the default view to datasheet and disallowed all other types of views other than design view. When I open the form directly, after entering the appropriate parameters, the form opens up in datasheet view. However, when I access this form through the Switchboard, it always opens the form in Form view rather than Datasheet view. How...
1
4529
by: jimwlee | last post by:
Hi all, I mistakenly deleted my switchboard on the Object Forms view. I recreated it again with the database utility, but the switchboard isn't showing up in the forms view. Any ideas? Thanks in advance. Jim Lee
2
13981
by: tdmailbox | last post by:
I am in the process of finishing up moderate sized access database application. I am in the process now of building a switchboard to house all the forms and reports. I decided the in built in switchboard manager will not do what I want so I was thinking of just buiding my own form. However, I was wondering is there any prebuilt switchboards or switchboard templates out there? I found one that I like
9
3344
by: mtgrizzly52 | last post by:
Hi all, I've looked for an answer for this in lots of books, online in several discussion groups and have not found the answer which I feel may be very simple. What I want to do is have a switchboard with several active buttons on it for entering new data, updating data, reports etc. The new data and report stuff is easy, but the update button has me baffled. What I want to have happen is when the update button is clicked, a parameter...
13
3103
by: jsmith811 | last post by:
I setup a very simple database for a client, it has only one table. I have startup options set to open straight to the Switchboard, so users only see the Switchboard menu. The database has 3 reports which were also on the switchboard menu and a form to enter data. I can open the database from 10 different computers, but on one of my client's machines, the database doesn't open to the switchboard, although If I hold the shift key down on...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.