473,832 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access merging records and count

7 New Member
hi, my first time here, great community site, found lots of help for my access development. So here is first question:

how do i merge a multiple record and shows the count as well, im making a library catalogue system, i made a query out of 4 tables, and come up with 4 different fields author_name, isbn, book_title, copy_id

so generally lets say one author has 1 book with several copies in the library, so it shows like this:

author_name: ISBN: book_title: copy_id:
Matthew James 1001 My Book 1
Matthew James 1001 My Book 2
Matthew James 1001 My Book 3

so i wanna merge all of them to look like this

Matthew James 1001 My Book 3 (copies)

how am i able to do this? ive tried the count funtion for SQL though it just count the whole query table, need help thanks
Jan 5 '08 #1
4 1586
ADezii
8,834 Recognized Expert Expert
hi, my first time here, great community site, found lots of help for my access development. So here is first question:

how do i merge a multiple record and shows the count as well, im making a library catalogue system, i made a query out of 4 tables, and come up with 4 different fields author_name, isbn, book_title, copy_id

so generally lets say one author has 1 book with several copies in the library, so it shows like this:

author_name: ISBN: book_title: copy_id:
Matthew James 1001 My Book 1
Matthew James 1001 My Book 2
Matthew James 1001 My Book 3

so i wanna merge all of them to look like this

Matthew James 1001 My Book 3 (copies)

how am i able to do this? ive tried the count funtion for SQL though it just count the whole query table, need help thanks
  1. In Query Design Mode ==> View ==> Totals
  2. [author_name]: GROUP BY
  3. [ISBN]: GROUP BY
  4. [book_title]: GROUP BY
  5. [copy_id]: COUNT
Jan 5 '08 #2
andy143vivi
7 New Member
thank you for the fast response, but iam using access 2007, and i am creating it the records are in the query already, so there is an SQL code on it already, how should i do this with the codes provided? can you please be a bi specific, bit noob here, thanks :)
Jan 6 '08 #3
ADezii
8,834 Recognized Expert Expert
thank you for the fast response, but iam using access 2007, and i am creating it the records are in the query already, so there is an SQL code on it already, how should i do this with the codes provided? can you please be a bi specific, bit noob here, thanks :)
Sorry, but I am a little confused on your explanation, try posting the SQL.
Jan 6 '08 #4
andy143vivi
7 New Member
hi, i got it already, didnt see the total there, but now ive figured it out, thanks for the great help, one more, ummm... i have a table of username and password field, and would like to use that as a log in for certain access to my forms or queries, any advice how should i do this? thanks
Jan 6 '08 #5

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

Similar topics

4
8882
by: Tom Dauria | last post by:
I have an application that will be distributed remotely. In the Access application I am opening Word documents and mail merging. The Word documents are linked to a tmpLetter table. In my code I write the records to be merged into that table. The Word documents are using a system dsn (ODBC) to connect to the data source. In my code I simply open the Word documents after writing to the table do a mail merge and print. It runs pretty...
24
2795
by: Bob Alston | last post by:
Most of my Access database implementations have been fairly small in terms of data volume and number of concurrent users. So far I haven't had performance issues to worry about. <knock on wood> But I am curious about what techniques those of you who have done higher volume access implementations use to ensure high performance of the database in a multi-user 100mbps LAN implementation??? Thanks
2
5606
by: VMI | last post by:
How can I dump a datatable into an Access table (which contais exactly the same structure)? Somebody suggested doing this with a dataAdapter. I don't want to run an Insert query for each record (I assume that if the datatable and the Access table have the same structure, I can just dump it from one place to the other). I'd be dumping data to the same Access table several times (append). Thanks.
2
1820
by: Bubb | last post by:
I have an Access database with one table that I use for stuff I sell online. Each record has the following fields: Unique Id, Cost, and Item Description. I just obtained some more stuff with its own database, some of the items I already have in my database. The new table has the same three fields. What I need to do is merge the two database tables together so I have one table. I need to make the new merged table have 7 fields: ...
1
3406
by: actimel01 | last post by:
I know this question has been asked many times before but I can't find an answer that fits my data! I have two Access databases. The tables in each have the exactly the same fields except for one (which was added into the tables in the second database). Thye do have different records. I want to merge the records from the tables from in the first database into the tables in the second. Other answers have suggested merging the tables in a...
6
4654
by: crealesmith | last post by:
Firstly, I have no problem with mail merging to Word, VB code for that works perfectly. On one mail merge I need to merge 15 fields of data that are from 3 seperate records. The 3 records are all in the same table. If I use a control source that is selecting the 3 records, all of the data is shown but spread over 3 pages in the mail merge, but needs to be listed together in one paragraph. Is there anyway of looping through the 3...
4
12455
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
6
1813
by: Henrik Goldman | last post by:
Hello, I have a dataset which consist of a string username and string hostname as a key and then an integer representing a count as the matching "second" value in a pair. So far I've used std::list to store this information by inserting objects containing all 3 pieces of information. However now some users has datasets in the range of 12000 records and my list seems to be taking like forever to complete inserting and finding.
3
2212
by: Bizmark | last post by:
Access2003, Windows XP Pro OEM user OS, Windows Sever 2000 server OS. Not-so-recently I inherited 3 Access DB's from another company merging with our own. Our own system works off of SQL server, but mainting these databases is critical to keeping the business running. 1 database in particular has been causing problems. Along the course we have had a few problems with random records corrupting (new and old) and Values within fields...
0
9794
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10780
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10539
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5623
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5788
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4420
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3077
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.