473,397 Members | 2,077 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,397 software developers and data experts.

how to combin two tables ??

- i had a database with two tables..
- each table contain a field named Date
- i wanna to make a form to search for records by date in the both tables
- any body could help me ??
Apr 30 '16 #1
3 958
zmbd
5,501 Expert Mod 4TB
mostafa moniem:
Queries are your friend.
You have a few choices:
+ you can create a query that pulls both tables in and joins on a related field returning records from both tables. Without the join, you'll have a mess on your hands

+ depending on the tables designs you could use an append query to merge the two tables; however, you've not provided enough detail

-- Your question lacks a bit of detail that would help us to point you in the best direction, such as table design and how or if the tables are related.

The more clearly you describe your situation the closer we can get you to the goal within a few posts.

-- If both tables are designed exactly the same, then you potentially have a huge normalization and design problem. Please read: Database Normalization and Table Structures

-- [Date] is a reserved word and as such really isn't advisable to use for a field name...
Allen Browne: Problem names and reserved words in Access - Entry Number 982 (as of 20160430)

-- Please understand, in all but the most complex situations, we do ask that you show your work. This helps us to avoid answering homework type questions and to focus on those posts where our members are really stuck.

You'll find that very few of our experts will simply provide ready to run code/script without you showing an effort first. Bytes.com has a more "Teaching" approach than a provide the black-box type answer.

-- Please check your Bytes.com inbox: I sent you a copy of resources a few days ago. In that resource listing is a link to a tutorial. Once you complete that tutorial you'll have a much better grasp on how handle situations such as this... you should read thru the entire document especially the last two links.
Apr 30 '16 #2
- i can't got it ..

- i could attach the data base to make it ore clear ..
the two tables (Cairo-CT - Cairo-INV) i need to make a query to make the field (Date) to be common

- any body could help me ?
May 1 '16 #3
zmbd
5,501 Expert Mod 4TB
Mostafa;
- i can't got it ..
This makes no sense.

- i could attach the data base to make it ore clear ..
Because most of our Experts and Moderators answer posts from work behind firewalls and/or on secured PCs, attachments are not usually our first option.

Indeed, most of the time, we do not need the file. Simply providing the information in the post is enough

See this example: Sum Across Columns in Crosstab
VBA and SQL can be posted within the thread and it is preferred that such be posted as text within the thread, not as an image or attachment, and formatted using the [CODE/] (required) button (or you can insert [code]..[/code] tags around the text by hand) as shown in the above link. NOTICE THE DATA TABLES... the [CODE/] format will hold your table formatting... just use spaces and NOT tabs to align the columns.

i need to make a query to make the field (Date) to be common
Simply joining on the [date] field may not be enough, as I indicated in my first reply, the tables may need to have more than that in common.

However, it may be as simple as joining on that field... in the query design, show both tables, link on the [date] field. Because we do not have any details, all I can suggest is to try setting the link between the tables to show all the records from one of the tables and only the related records in the second. Once that is done, drag the fields from each table that show the data you are trying to retrieve in to the grid display. Run the query to see if this works.

Beyond this basic guide, you simply have not provided enough detail about the tables themselves (refer to the above link for an example for how to do this).

two tables (Cairo-CT - Cairo-INV)
The naming of the tables you've provided makes me wonder if you have properly normalized your database.

- any body could help me ?
We do ask that you make an effort and when possible show what work you've done. This does several things: it gives us an idea of your knowledge level, it keeps us from rehashing what you've already tried, and finally it shows "sweat equity" on the poster's part

The tutorial link in the PM I've sent you will walk you thru how to build the core query types that you simply MUST MASTER. These are BASIC skills that every database developer MUST KNOW and UNDERSTAND - hence, why I sent you the PM with the tutorial link and other resources.

++ Unless the situation is: very simple, very unusual, or unusually complex - code/sql solutions are not normally just provided on demand please see our FAQ
May 1 '16 #4

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

Similar topics

44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
0
by: pei_world | last post by:
I have create two different type of projects: Windows Service/Window Application Windows Service(running in background) Windows Application(providing GUI to control the service) how can I combin...
1
by: Shelby | last post by:
Problem: My company generates its own data export from a propietary database. These (free) tables can be read in C#.NET using a Visual FoxPro driver (vfpoledb). I can read each of the six tables...
59
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
2
by: Henrik | last post by:
Hi, I'm really stuck with this one. I have a dataset with two tables. One table is company data, and the other is contacts. I populate these by using a SP in SQL Server which returns the two...
5
by: rdemyan via AccessMonster.com | last post by:
I have a need to add another field to all of my tables (over 150). Not data, but an actual field. Can I code this somehow. So the code presumabley would loop through all the tables, open each...
25
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in...
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: 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:
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.