472,353 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Combine multiple records into one

I have a table with multiple records in it. I am being forced to
combine multiple records into one record in order to be uploaded to a
website, and I only get one record per client. How can I
systematically combine multiple records into 1?

The table looks like this

Client ID Service Status
1 Doc Pending
1 Test Pending
1 Fix Complete
2 Fix Pending
2 Other Complete
3 Doc Complete
3 Test Complete
3 AA Complete
3 Mail Pending

I need 1 record for Client 1, one for Client 2, one for Client 3.

Any suggestions?

Thanks in advance,
Laura

Feb 27 '06 #1
4 3560
musicloverlch wrote:
I have a table with multiple records in it. I am being forced to
combine multiple records into one record in order to be uploaded to a
website, and I only get one record per client. How can I
systematically combine multiple records into 1?

The table looks like this

Client ID Service Status
1 Doc Pending
1 Test Pending
1 Fix Complete
2 Fix Pending
2 Other Complete
3 Doc Complete
3 Test Complete
3 AA Complete
3 Mail Pending

I need 1 record for Client 1, one for Client 2, one for Client 3.


Use VBA to concatenate the records into one string.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Feb 27 '06 #2
I tried the Module available for doing this at the AccessWeb site below
(using Access 2000)

http://www.mvps.org/access/modules/mdl0008.htm

but, unfortunately, I get either a "Complie Error: User-defined type
not defined".

I really need something similar myself, but can't figure out what I
need to fix.

Tino

Feb 28 '06 #3
See:
http://www.mvps.org/access/bugs/bugs0031.htm
Bugs: Access 2000: Type Mismatch or User Defined Type Not Defined
Author(s)
Dev Ashish
When you create a new database in Access 2000, the default data
access library used is ADO. That is, ADO will be selected under
Tools/References in VBE instead of DAO. Converted databases still retain DAO
as the default library and ADO will not be selected under References.
The "Type Mismatch" error occurs as the global class Recordset is
evaluated as ADODB.Recordset instead of the DAO.Recordset, while the "User
Defined Type Not Defined" error is generated at compile time because there
is no Database object in ADO.

To fix this problem, uncheck the ADO reference and check DAO 3.6
Library as a new reference.

You may still receive this error message when referring to DAO
Recordsets if you have both ADO and DAO selected under References. This is
because the ADO reference is listed above DAO in the References dialog and
hence, is taking precedence at runtime when Access tries to resolve your
data types. To move the DAO reference above the ADO one in the dialog,

a.. Uncheck the ADO reference.
b.. Close the References dialog.
c.. Open the dialog again.
d.. Check the ADO reference.
e.. Close the dialog.
If you are working with a database in which both ADO and DAO
references are selected, the best way is to always fully qualify your data
types. For example:

Dim rsCustomers as ADODB.Recordset
Dim rsInvoices as DAO.Recordset

For more details on which references to use in your application, view
this article.

Article ID: 197110
ACC2000: References to Set When Working with Microsoft Access

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<Ti*****@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
I tried the Module available for doing this at the AccessWeb site below
(using Access 2000)

http://www.mvps.org/access/modules/mdl0008.htm

but, unfortunately, I get either a "Complie Error: User-defined type
not defined".

I really need something similar myself, but can't figure out what I
need to fix.

Tino

Feb 28 '06 #4
Stephen,

You are an answer to my prayers!!
no
It works perfectly now.

Thanks!
Ti

Feb 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: mark | last post by:
Access2000 How do I write a query that combines the CTC field from each record below into one record? I need to concatenate the CTC field with a...
1
by: mojo | last post by:
We have set up an Access database with tables x,y, & z where we would like to have multiple people entering data into a table x. Each person has...
2
by: BeanCounterCPA | last post by:
I have a database that has multiple records for a single individual. For example, for a database that has the following fields for each loan. ...
14
by: imani_technology_spam | last post by:
I have the following table; CREATE TABLE ( IDENTITY (1, 1) NOT NULL , (7200) COLLATE SQL_Latin1_General_Pref_CP1_CI_AS NOT NULL , ...
5
by: jhutchings | last post by:
Hello everyone, I have a database where I collect shipment data from various tables. However, I have a problem. Whenever I want to see shipping...
8
by: Mark Welch | last post by:
I am at a complete loss on how to do this. I am using Microsoft Access 2000, to implement a preliminary version of a reasonably modest relational...
4
werks
by: werks | last post by:
Hello experts could someone tell me how can i combine multiple records into one value. Sample in MS Access: (Lastname & "" & "," & " " &...
1
by: bluereign | last post by:
Thank you for your assistance. I am a novice looking to JOIN and append or combine records from 2 current Tables into 2 new Tables named below. I...
3
by: klbachrodt | last post by:
Hi all - I've been browsing this forum for a while now, looking for help, and finally decided to join and ask my question, since I'm not terribly...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.