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

Home Posts Topics Members FAQ

MS Access 2002 Switchboard manager problem

Can you help me?
I have 9 forms in the base. 2 forms are opening as single and 7 as
datasheet. Thats OK, but when I used Switchboard manager, with him all of my
forms are opened as single. How can I solve this problem. Thanks!
Nov 12 '05 #1
2 6585
Dejan,

When opened from another form, the second form must be
opened specifically in Datasheet View.

If this switchboard was made using the Add-in Switchboard manager, as
I suspect, you can add a command to the switchboard code to open the
form in Datasheet View.
Here's how.

Open the Switchboard in design view.
Open the Code window and find the

Private Function HandleButtonCli ck(intBtn As Integer) function.

Add the following to the list of Constants already there:

Const conCmdOpenFormD S = 9
(Note: I've used 9, however check to see what the highest Const number
already in use by the code is.
It may or may not be 8. Use the next higher number.)

Scroll down within this function until you come to

Select Case rst.Command

with it's series of Case statements.
Add the following to the series, just before the Case Else statement:

' Open Form in Datasheet View
Case conCmdOpenFormD S
DoCmd.OpenForm rst![Argument], acFormDS

Next, open the Switchboard Items Table and find the form name in the
Argument field that you wish to open.
Change that record's Command field number (it's probably a 2) to a 9.
Save the table change.

Open the switchboard. Your form should
now open in Datasheet view when you click the command button.

Hope this has helped.

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
"Dejan M." <de*****@blic.n et> wrote in message
news:bo******** **@ariane.blic. net...
Can you help me?
I have 9 forms in the base. 2 forms are opening as single and 7 as
datasheet. Thats OK, but when I used Switchboard manager, with him all of my forms are opened as single. How can I solve this problem. Thanks!

Nov 12 '05 #2
if you want to continue using the switchboard, you need to create a
new type of command (ie. open form in DS mode)

go to the switchboard form, view code
go to the HandleButtonCli ck event code
create a new constant
Const conCmdOpenFormD S = 9

add this code to the case statement
Case conCmdOpenFormD S
DoCmd.OpenForm rst![Argument],acFormDS,,,acA dd

go to the switchboard items table and change the 'command' field to 9
for the 2 forms that should open in DS mode
note. the switchboard wizard won't know about this new command (9)

the alternative is to create a 'menu form' with 9 command buttons that
open the forms as required

"Dejan M." <de*****@blic.n et> wrote in message news:<bo******* ***@ariane.blic .net>...
Can you help me?
I have 9 forms in the base. 2 forms are opening as single and 7 as
datasheet. Thats OK, but when I used Switchboard manager, with him all of my
forms are opened as single. How can I solve this problem. Thanks!

Nov 12 '05 #3

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

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
2
4036
by: Dannic | last post by:
Here is the application. Its a simple application really. I have a db created in Access 2000 which opens to a switchboard created by the switchboard manager. Now the problem. This only works on some computers. I installed access 2000 on two brand new, out of the box, computers and on one it gives me a run time error and the other it doesn't. Both computers are running windows XP. Though the operating system doesn't seem to be the...
4
4136
by: Rampar | last post by:
I did some customizing on my switchboard (changing colors and adding graphics) to make it more appealing. I tried to add another item, and it told me that 8 was the limit. Fine. I deleted one item so that I could add another switchboard. I have done this several times in the past, but it will not open the new switchboard. The button just goes in and out and that is it. So, I decided to create a new switchboard and scrap the old one...
3
2246
by: Siobhan Perricone | last post by:
I have a user who is having a problem with an access database that I didn't build and haven't had anything to do with in the past. The database opens up to the switchboard, and she clicks through to the "look up by facility name" form, and opens it up. So far so good. She is able to click on and view every single thing on this pretty complicated form, including opening a variety of secondary forms. However, whenever she clicks on the...
2
10787
by: Rich Anton | last post by:
I am a newbie to Access. I have used Lotus Approach much over the years, but not Access. What I am trying to do is to create an opening screen with a bar menu that will basically allow me to select what I want to do, whether it be to generate a specific report or enter data to a specific form or run a specific macro. It would be great if this screen would act as the main interface screen, and that after closing the selected form,...
5
2211
by: Michael Keene | last post by:
I have a query that I'd like to add to my switchboard, but when I use the switchboard manager I only get the option to run a report, a macro or open a form. Is there a way to add a query without making it a macro?
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
3
2150
by: Footsie | last post by:
Hay guys, When I create a switchboard, everything works fine until the last step: the main (default) switchboard page won't show up. I've double-checked the macros and the individual pages (under Tools-Database utilities-Switchboard Manager) and everything else is fine. What might the problem be, and how can I fix it?
2
3125
by: ghadley_00 | last post by:
Hi, Is there a way to have the labels in a MS access database switchboard dynamically generated based on values in a table? I have a table of items (let's call it table Main) , each of which is assigned to a category. The list of categories is stored in a separate linked table (let's call it Categories). The Categories table consists of entries that have an ID number and a name. I have made queries of the Main table where I make the...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9602
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
10639
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
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
7661
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...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.