Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2008

Tip: Looking for answers? Try searching our database.

flag (***) when the part number changes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Garry - 21 Apr 2008 22:53 GMT
Hi

My query will output part numbers for labels in ascending order

Depending on the number of labels

Is it possible to incorporate a flag (***) when the part number changes

i.e.

123
123
123 ***
456
456 ***
789
789
789
789
789
789
789 ***

etc, regards, Garry
Jeff Boyce - 22 Apr 2008 00:29 GMT
Garry

Your example seems to say you want to put the flag (***) on BEFORE the part
number changes, not after.

Regards

Jeff Boyce
Microsoft Office/Access MVP

> Hi
>
[quoted text clipped - 20 lines]
>
> etc, regards, Garry
John Spencer - 22 Apr 2008 02:03 GMT
I think you could do this in a report with relative ease.  In a query, I
 can't think of a method that would work to do this unless you have
some other field to specify the order of the identical part numbers.

'====================================================
 John Spencer
 Access MVP 2002-2005, 2007-2008
 Center for Health Program Development and Management
 University of Maryland Baltimore County
'====================================================

> Garry
>
[quoted text clipped - 30 lines]
>>
>> etc, regards, Garry
Garry - 22 Apr 2008 21:22 GMT
Jeff, i do need the flag before the part number changes

John, I have done this already and it works great in access

The labels have quite a bit of text that is formatted in normal, bold and
italic font

I cannot do this with an access report, I therefore need to export the data
to a xls file
as I can then use with microsoft word

Any thoughts

>I think you could do this in a report with relative ease.  In a query, I
>can't think of a method that would work to do this unless you have some
[quoted text clipped - 41 lines]
>>>
>>> etc, regards, Garry
John Spencer - 23 Apr 2008 13:00 GMT
No other thoughts.  I'll repeat unless you have some other field(s) that would
let you specify which of the indentical part numbers was the "last" one, I can
think of no way to generate a flag to mark the "last" one.

John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County

> Jeff, i do need the flag before the part number changes
>
[quoted text clipped - 54 lines]
>>>>
>>>> etc, regards, Garry
Garry - 23 Apr 2008 22:11 GMT
Hi, I have a separate query that will count the number of each group of part
numbers if this would help

ie - part number 123 = 3, 456 = 2

regards, Garry

> No other thoughts.  I'll repeat unless you have some other field(s) that
> would let you specify which of the indentical part numbers was the "last"
[quoted text clipped - 64 lines]
>>>>>
>>>>> etc, regards, Garry
John Spencer - 24 Apr 2008 12:27 GMT
You have to be able to apply a ranking number, so that you get something like
123    1
123    2
123    3

Then you can set the flag "***" when the ranking number and the count are
equal.  Again you need some field (or combination of fields) that can tell you
that this "123" comes before that "123".

John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County

> Hi, I have a separate query that will count the number of each group of part
> numbers if this would help
[quoted text clipped - 71 lines]
>>>>>>
>>>>>> etc, regards, Garry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.