473,387 Members | 1,464 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.

table 1 < - form -> table 2

36
Hi all,

What is the easiest way to relink a single form to different tables
Nov 26 '06 #1
7 1491
PEB
1,418 Expert 1GB
Yeah.. using multi tables... need more efforts! It's sure!

So you need VBA..

In On current event or where you need in the form module you type:

Me.Recorsource="Table1"
Nov 26 '06 #2
nico5038
3,080 Expert 2GB
It's strange to have one form template linking to multiple tables.
Normally you have different tables that have a unique set of fields.
When there are multiple tables with the same structure this often points to a not normalized database design. Like a tblOrdersJan, tblOrdersFeb, etc...

In such a case it's better to create one table and have the months as a selection to filter the "master table".

Can you elaborate why this is needed ?

Nic;o)
Nov 26 '06 #3
omozali
36
Because I need different users to be able to access their own tables using only one form. so instead of creating a form and a table for each user I thought it would be easier to have one form that links to different tables depending on the user
Nov 26 '06 #4
nico5038
3,080 Expert 2GB
Hmm, in such a case I would create one "master table" with an additional "username" field. When the users can have the same unique ID to the rows the it needs to be defined as part of the unique (composite) key.
Thus the selection can be by a simple filter that's applied when the form is opened.
This will also ease reporting "accross" multiple users...

Getting the idea ?

Nic;o)
Nov 26 '06 #5
omozali
36
Hmm, in such a case I would create one "master table" with an additional "username" field. When the users can have the same unique ID to the rows the it needs to be defined as part of the unique (composite) key.
Thus the selection can be by a simple filter that's applied when the form is opened.
This will also ease reporting "accross" multiple users...

Getting the idea ?

Nic;o)

Yes I do. I think maybe creating different tables would be easier to move them around (i.e. to different PC) if that user was for example needed to take his info with him on his laptop
Nov 26 '06 #6
nico5038
3,080 Expert 2GB
When a user needs a copy of his data you can still use one master table and a report (or e.g. an excel sheet) to export the data when needed.
When the user needs to maintain his data on the laptop then it's getting more complex and in general I code the data exchange myself, although Access does has a database replication function. You're however warned as this replication seizes to exist in Access 2007.

Does your user settle with a "read-only" copy of his data ?

Nic;o)
Nov 26 '06 #7
NeoPa
32,556 Expert Mod 16PB
You may be flogging a dead horse here Nico.
We've (not just me) tried to get this concept across in other threads but there's no response as yet :(.
Nov 27 '06 #8

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

Similar topics

7
by: haoren | last post by:
Can anybody help me with this problem: How can I echo a string that contain <? and <?php? For example, $str="test <? and <?php echo"; echo $str;
6
by: ubccis | last post by:
What are the differences between using these? <?= and <?php and <?
4
by: karolina | last post by:
Hi I am playing around with visual studio 7.0. Why does the code below do like it does? Where do I set the character set to use in cout, properties->configuration properties->General->character...
16
by: Michael | last post by:
just a quickie: as cout << endl; is to cout << "\n"; is there an equivalent for cout << "\t";
72
by: Paminu | last post by:
In math this expression: (a < b) && (b < c) would be described as: a < b < c But why is it that in C these two expressions evaluate to something different for the same values of a, b and...
7
by: Venus | last post by:
Hello, I am trying to generate a dynamic form at runtime and would like to do it using "<asp: ..." form elements as follows Build up the string that is placed somewhere in the HTML code the...
0
by: Dave | last post by:
A web page of mine looks something like: .... code ... <form id="formOne" action="Process.aspx" method="post"> .... a bunch of code ... </form> .... more code ... <form id="formTwo"...
10
by: Jon Noring | last post by:
Out of curiosity, may a CDATA section appear within an attribute value with datatype CDATA? And if so, how about other attribute value datatypes which accept the XML markup characters? To me,...
7
by: Mike Owen | last post by:
I have a vb.net page that uses a form as below: <form id="Visual" name="Visual" method="post" runat="server"> If I run this on my Windows XP development PC then the HTML generated from it is:...
3
by: webmasterATflymagnetic.com | last post by:
Folks, I'm struggling to put the question together, but I have this problem. I have written an HTML form that I can use for data entry. This uses PHP to write a SQL UPDATE command that gets...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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
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,...
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.