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

Switchboard problem

2
Hello!

IŽm making a switchboard in design view.
The 1st level of the switchboard contains different partners.
The 2nd level contains OpenForm(s), OpenReport(s) commands for every partner.

The form(s) and report(s) are always the same...for example...frmOne and rptOne, but every partner has his own tables, queries...for example tblOnePartner1, tblOnePartner2, tblTwoPartner1, tblTwoPartner2. The table One and table Two has the same structure and contains the same type of data for all partners.

IŽd like to add to the cmdButton(s)_OnClick event a statement that would change the RecordSource property..


Any ideas? Thx for your response.

the OpenForm code was made by the cmdButtonŽs wizard and looks like this:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdOdpriIRLovex_Click()
  2. On Error GoTo Err_cmdOdpriIRLovex_Click
  3.  
  4.     Dim stDocName As String
  5.     Dim stLinkCriteria As String
  6.  
  7.     stDocName = "frmIR"
  8.     DoCmd.OpenForm stDocName, , , stLinkCriteria
  9.  
  10. Exit_cmdOdpriIRLovex_Click:
  11.     Exit Sub
  12.  
  13. Err_cmdOdpriIRLovex_Click:
  14.     MsgBox Err.Description
  15.     Resume Exit_cmdOdpriIRLovex_Click
  16. End Sub
Feb 2 '08 #1
1 1259
NeoPa
32,556 Expert Mod 16PB
Hi,

This is a perfect example of why you should not design your database that way.
This data should be stored in the same tables but containing different data in the rercords. (See Normalisation and Table structures for a fuller explanation.)

You can change the Data Source for a form though. What difficulty are you having (You don't show what you've tried or explain where you're stuck).
Feb 5 '08 #2

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

Similar topics

13
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
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...
2
by: Dejan M. | last post by:
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...
9
by: Baz'noid | last post by:
Hi all, My computer has suddenly decided that it doesn't like the switchboard - it's quite happy to open up on other machines, meaning the database itself isn't at fault, it must be something...
2
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...
2
by: Neil Greenough | last post by:
I am trying to create a Switchboard using the Switchboard Manager in MS Access 2000. I have managed to get the table created for the switchboard, however it hasn't actually created the form. ...
2
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...
8
by: Ray Greene | last post by:
I was working in Access and everything disappeared from the screen. When I closed and reopened the file there was no switchboard. I can open tables and forms etc if I select a category from the...
6
by: keri | last post by:
Please help, i'm baffled. I have opened my db and recieved an error on this code which starts the switchboard. As i didn't write this code i'm baffled, and I don't think I have made any changes...
13
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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,...
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
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...

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.