Hi all,
We're importing data from a propriatery database, and below is a snippet of
several lines:
DateTime AcctNumber PtName Notes
12-23-2003 00432234 Smith, John Patient arrived from
12-23-2003 00432234 Smith, John ER with broken leg
12-23-2003 00432234 Smith, John and was admitted to
12-23-2003 00432234 Smith, John room 204.
12-24-2003 00432344 Thompson, Mike Patient sent by
12-24-2003 00432344 Thompson, Mike Primary Care physician
12-24-2003 00432344 Thompson, Mike and is room 205
(this is dummy data of course)
What I need is to group by DateTime, AcctNumber, and PtName and combine Notes
into one field, like this:
DateTime AcctNumber PtName Notes
12-23-2003 00432234 Smith, John Patient arrived from ER with broken leg
and was admitted to room 204.
12-24-2003 00432344 Thompson, Mike Patient sent by Primary Care
physician and is room 205
So in this example instead of 7 rows I'd only have two rows. I've played with
looping and several other methods, but nothing works. Can someone make a
suggestion?
Thanks. Oh, and this is on MS Access 2000 with all updates running on MS
Windows 2000 Pro.
Alex.
We're importing data from a propriatery database, and below is a snippet of
several lines:
DateTime AcctNumber PtName Notes
12-23-2003 00432234 Smith, John Patient arrived from
12-23-2003 00432234 Smith, John ER with broken leg
12-23-2003 00432234 Smith, John and was admitted to
12-23-2003 00432234 Smith, John room 204.
12-24-2003 00432344 Thompson, Mike Patient sent by
12-24-2003 00432344 Thompson, Mike Primary Care physician
12-24-2003 00432344 Thompson, Mike and is room 205
(this is dummy data of course)
What I need is to group by DateTime, AcctNumber, and PtName and combine Notes
into one field, like this:
DateTime AcctNumber PtName Notes
12-23-2003 00432234 Smith, John Patient arrived from ER with broken leg
and was admitted to room 204.
12-24-2003 00432344 Thompson, Mike Patient sent by Primary Care
physician and is room 205
So in this example instead of 7 rows I'd only have two rows. I've played with
looping and several other methods, but nothing works. Can someone make a
suggestion?
Thanks. Oh, and this is on MS Access 2000 with all updates running on MS
Windows 2000 Pro.
Alex.
Comment