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

2 tables shown on 1 form??!!

OK, not the most knowledgable, but here i go...

I am developing a database with two seperate tables (tbl_london and tbl_bristol),

I would like to display all information from both tables (both with the exact same fields) on 1 form in "Default View: Continuous Forms" view. Is this possible to do in continuous form view, also i don't want to use subforms either.

I know it may be possible using an "On Open" search query perhaps, but not sure the best way to go about it.

Any tips would be very helpful in my quest to be a true ms access expert, as well as not get fired.
Jul 31 '07 #1
9 1447
r035198x
13,262 8TB
OK, not the most knowledgable, but here i go...

I am developing a database with two seperate tables (tbl_london and tbl_bristol),

I would like to display all information from both tables (both with the exact same fields) on 1 form in "Default View: Continuous Forms" view. Is this possible to do in continuous form view, also i don't want to use subforms either.

I know it may be possible using an "On Open" search query perhaps, but not sure the best way to go about it.

Any tips would be very helpful in my quest to be a true ms access expert, as well as not get fired.
Two very noble quests indeed. Unfortunately you had posted this in the wrong forum(MySQL) so I've moved it to the Access forum.
Jul 31 '07 #2
Rabbit
12,516 Expert Mod 8TB
OK, not the most knowledgable, but here i go...

I am developing a database with two seperate tables (tbl_london and tbl_bristol),

I would like to display all information from both tables (both with the exact same fields) on 1 form in "Default View: Continuous Forms" view. Is this possible to do in continuous form view, also i don't want to use subforms either.

I know it may be possible using an "On Open" search query perhaps, but not sure the best way to go about it.

Any tips would be very helpful in my quest to be a true ms access expert, as well as not get fired.
Why don't you want to use subforms?

If the tables are related in some way you can join them, if they have the same fields you can union them.
Jul 31 '07 #3
JKing
1,206 Expert 1GB
If they both have the same fields you could try creating a UNION query. This will join both into one. This query would then be the recordsource for your form and you could view the data from both tables as if they were one.

Here's an example of a UNION query:

Expand|Select|Wrap|Line Numbers
  1. SELECT managerFirstName, managerLastName, managerAddress
  2. FROM tblManager
  3. UNION
  4. Select employeeFirstName, employeeLastName, employeeAddress
  5. FROM tblEmployee
  6.  
Let me know how this works out for you.

Edit: Must have been mid-post while you posted there Rabbit. Nice to see we're both on the same track though :)
Jul 31 '07 #4
Rabbit
12,516 Expert Mod 8TB
Hmm, I wonder if Union Queries are updateable though. It wouldn't know which table to put the record in. May have toss in a create table statement in there if you want to add records. And with a Join not all the fields are updateable.
Jul 31 '07 #5
JKing
1,206 Expert 1GB
If the form is for view-only purposes the Union query would be just fine.
Jul 31 '07 #6
Thanks very much for the reply's... seems quite hard to get the specifications i want using access... the union query seems the best one, but having trouble implementing it, as well as the possibility of not being able to update!

I didn't want to use subforms as i want there to be a button next to each record (form in countinuous view) so people can click onto another form displaying the rest of the information for that record. (however i may be wrong in assuming i can't link to other forms by clicking onto the particular record your interested in within the subform format???)

Very much open to suggestions if anyone has an answer to this enigma... let me know if you need more details.

Cheers.
Aug 3 '07 #7
ok, union query works very good, the exact look i'm after... just the link onto the form containing the rest of THAT records fields... it comes up with the message:

"The command or action SaveRecord isn't available right now"

Tried taking out the save command from the macro but stops working completely... so it's just the last part in having a link onto other forms from the particular record?!?!?

Graciarse
Aug 3 '07 #8
ok, union query works very good, the exact look i'm after... just the link onto the form containing the rest of THAT records fields... it comes up with the message:

"The command or action SaveRecord isn't available right now"

Tried taking out the save command from the macro but stops working completely... so it's just the last part in having a link onto other forms from the particular record?!?!?

Graciarse
Aug 9 '07 #9
Rabbit
12,516 Expert Mod 8TB
A union query is not updateable. It has no idea which table to update. You'll have to make a table from the union query and update to that table. This means that your two original tables become outdated.
Aug 9 '07 #10

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

Similar topics

1
by: Brad H McCollum | last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the MSDE version of SQL Server as the back-end (it's a program for a really small # of users --- less then 3-4). I'm trying to...
0
by: Peter D | last post by:
I have a main table and 32 sub tables linked to the main table. In those 32 tables i store info, one of those infos is : wether it is oke ( green - i store a number 3- ), wether it is not oke( -...
5
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
2
by: Janelle.Dunlap | last post by:
I have a table in my database that is linked to an excel spreadsheet. I need to be able to manipulate the data in this linked table so that I can create smaller normalized tables that work with...
1
by: atl10spro | last post by:
Hello Everyone, I am new to MS Access and although I have created several different databases I lack the VB knowledge to code a search function. I am turning to your expertise for assistance. ...
10
by: VirtualLilac | last post by:
Hi, Am trying to build a database for non-profit organisation, its a volunteer job and nobody around to guide me. From my learning I could able to build few reports and forms but am feeling stuck...
2
by: anokun7 | last post by:
Hi, I am connecting to a DB2 v7.1 server from windows using JDBC type 2 (I figured out that type 4 is only for 8 and upwards). I used DB2 Connect to create a system DSN and seem to be able to...
0
by: Dennis Francek | last post by:
Hello I have populated a treeview from my dataset and by clicking in the treeview i want to get the corresponding table shown in a datagridview. Ive managed this by looking at each DataRow and...
9
by: Steve67 | last post by:
Need a little assistance with a VBA code for updating tables through a form. I have a form with two text boxes and a command button. One text box is named txtNewPartNumber and the other text box is...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.