Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 17th, 2006, 02:34 PM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jaredcat
Default representing duplicated data in a list box

Hi there,
I have a very large table [WTN Table] that contain information about the billing details for working telephone numbers (WTNs) installed by one of my client's clients at sites across the country. These are the relevant fields:

[WTN Table].[WTN] = Working Telephone Number (i.e. 123-456-7890)
[WTN Table].[Line Item] = What kind of line this WTN is (i.e. LINE, TRUNK, T1/PRI, or the field may be left blank)
[WTN Table].[Description] = Literally what is written on the bill for this line item (i.e. "Metered Business Line")
[WTN Table].[Charge] = The charge for this bill line item, (i.e. $17.95)

A normal WTN may have several entries in the table, for instance,

123-456-7890, "LINE", "Metered Business Line", $17.95
123-456-7890, "", "FCC Universal Sevice Fund", $1.95
123-456-7890, "", "Caller-ID", $0.50
123-456-7890, "", "State and Local Taxes", $1.27

However, sometimes there is a unique [WTN] in the table that has no [Line Item] entry at all. The information may still be in the description, but the person doing the data entry didn't update the [Line Item] field. For instance:

123-456-7890, "", "Metered Business Line", $17.95
123-456-7890, "", "FCC Universal Sevice Fund", $1.95
123-456-7890, "", "Caller-ID", $0.50
123-456-7890, "", "State and Local Taxes", $1.27

Now I need to identify a [Line Item] type for every [WTN], so I need to manually go through the blanks any do this manually. Out of about 150,000 unique WTNs, there are about 20,000 that have no [Line Item] field--- so I still need to put the data into a readable format.

What I would like is a table (or something table-like) that shows only unique [WTN]s where the [Line Item] field is never used, and then a listbox with all of the [Description]s that match that [WTN], listed in the order they are in the original [WTN Table] table, and then a blank [Line Item] field where I can enter in the Line Item type based on a manual read of the data.

So the above example could be represented as:
123-456-7890,(Metered Business Line, FCC Universal Service Fund, Caller-ID, State and Local Taxes), -blank line item field-
..imagine the parenthesis represent data in a listbox.

I know how to create a make-table query to pull out all of the [WTN]s that never have a [line item], but I don't know how to represent the description data in a listbox. How do I do that?

Thanks, Jared


 
Old July 18th, 2006, 12:20 PM
Friend of Wrox
 
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would recommend that you use a sub form and not a list box. It is a lot more flexible and cab eb set up to allow you to edit the data.

Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-column list box values moved to 2nd list box sbmvr Access VBA 1 May 14th, 2007 01:58 PM
Representing Huge Amount of Data In a Html file me_zeta HTML Code Clinic 7 November 6th, 2006 11:23 PM
filtering data from a database using list box europhreak Dreamweaver (all versions) 4 September 25th, 2005 04:27 AM
Filling in a list box with data from Access goplayoutside VB Databases Basics 7 April 21st, 2004 08:27 PM
Copy list box data vladimir Access 5 July 23rd, 2003 06:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.