|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am trying to set up switchboards with varying numbers of items on each, but the switchboards with fewer items are still displaying the bottom rows form the SBs with more items. For example, one switch board has three items and one has five. When I view the one with three I see the correct three as well as the fourth and fifth item from the other switchboard!
I have the main switchboard marked as default. Does that mean it is the defaut design or that it is the one that opens when the program launches? This seems related to the fact that I only have one switchboard to select from in the form list, how can I have each switchboard listed here to design them independently? Thanks much for any suggestions. |
|
#2
|
|||
|
|||
|
Did you create you switchboard using the Switchboad Manager?
S- |
|
#3
|
|||
|
|||
|
Yes. For the first one, I went under Tools/Database Utilities/SwithBoard Manager.. and since no switchboard existed, I got the create new dialogue box.
After that, I created the others from the switchboard manager (By selecting new). Now, when I open the switchboard manager I see the four switchboards that I have created. Thanks. |
|
#4
|
|||
|
|||
|
The switchboard you marked as default is the switchboard used when you launch the program. As for you otehr problems, I have never had that problem that you are describing when using switchboard manager. I have had those problems when I was first learning how to tweak the exisiting switchboard code to meet my specific needs. If you can post you DB and I will look at your Switchboards (or put on an FTP site).
S- |
|
#5
|
|||
|
|||
|
Quote:
How would I post the DB? m. |
|
#6
|
|||
|
|||
|
First you Compact your DB and then you Zip it.
The when you reply to this post about 6 inches down you will see a button on the screen here that says manage attachments. Follow the instructions If it is too big go to Yahoo and get you free breifcase (FTP site) and send me a private message telling me the username and password and I will download it from there. S- |
|
#7
|
|||
|
|||
|
Okay here is the deal.
For some reason you thought that you needed to remove four of the Buttons from your switchboard. Doing this gave you an error when it ran the code For intOption = 2 To conNumButtons Me("Option" & intOption).Visible = False Me("OptionLabel" & intOption).Visible = False Next intOption Instead of changing Const conNumButtons = 8 TO Const conNumButtons = 4 You decided to remove the code Me("Option" & intOption).Visible = False Me("OptionLabel" & intOption).Visible = False Which hides buttons not in use. Now you button don't hide and stay displayed. Add this back Me("Option" & intOption).Visible = False Me("OptionLabel" & intOption).Visible = False and change to this Const conNumButtons = 4 S- PS the odds of you only using 4 buttons ever on the switchboad is 50:1 against you You already need more then 4 even now. You report generation switchboard doens't have a return to previous menu to get you back to the main menu. Increase you count back to 7 (you have the more) and adjust the Const conNumButtons = 7 Good luck |
|
#8
|
|||
|
|||
|
Quote:
Thanks a ton! You are exactly correct. When I got the debug message I deleted that part of the code (thinking it was the bug) and tried to just go on. This happened a couple times. Since I have gotten very far with the switchboards do you suggest I delete all of them and start from scratch to make sure nothing else is screwed up? Can I save the layout?Thanks again! Matt PS This means that every switchboard has to have the same number of buttons, right? But not all will be visible, right? One more thing, how do I know where to insert that code if i don't just scrap what I've done? I greatly appreciate your time. ![]() |
|
#9
|
|||
|
|||
|
Look for this code in the form
For intOption = 2 To conNumButtons Next intOption And put the following code in the middle of the next statement Me("Option" & intOption).Visible = False Me("OptionLabel" & intOption).Visible = False You best bet would be to remane the switchboad form and start over. S- |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Switchboard layouts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|