473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Access query challenge for you experts

I am relatively new to Access. I can join tables and run queries but I am
stumped on this one. I have a SAP table downloaded called Roles that contain
a range of values for transactions. There is another table with all the
transaction values. The Roles table has a value From and To that can contain
wildcards such as "*". The "F-52,54,57" etc. type transactions are actual
values. So, F-54 to F-57 would be F-54, F-55, F-56, F-57. My dilemma is I
need to decode the From To so that I can get the appropriate values from my
Transaction table. This has to be clever enough to decode the range and
lookup any values that fall within that range. Here is what one role has for
ranges. Any ideas? Thanks

ROLE FROM TO
50000060 0
AL09
50000060 AL11
AL13
50000060 AL16
CKMD
50000060 DB05
DB07
50000060 DB12
F-52
50000060 F-54
F-57
50000060 F-59
F109
50000060 F111
FD00
50000060 FD03
FD31
50000060 FD33
FK00
50000060 FK03
FY1R
50000060 FY1R
F109
50000060 FYLT
HQ*
50000060 HS*
KP05

Nov 3 '06 #1
3 1217
I assume the first row is supposed to be
50000060 0 Al09
second is
50000060 AL11 Al13

Yes?

When you have something like FD33 FK00

How do we know how high the FD series goes ?

Kevin C

"Mark" <m.*******@snet.netwrote in message
news:IA****************@newssvr12.news.prodigy.com ...
>I am relatively new to Access. I can join tables and run queries but I am
stumped on this one. I have a SAP table downloaded called Roles that
contain a range of values for transactions. There is another table with all
the transaction values. The Roles table has a value From and To that can
contain wildcards such as "*". The "F-52,54,57" etc. type transactions are
actual values. So, F-54 to F-57 would be F-54, F-55, F-56, F-57. My dilemma
is I need to decode the From To so that I can get the appropriate values
from my Transaction table. This has to be clever enough to decode the range
and lookup any values that fall within that range. Here is what one role
has for ranges. Any ideas? Thanks

ROLE FROM TO
50000060 0 AL09
50000060 AL11 AL13
50000060 AL16 CKMD
50000060 DB05 DB07
50000060 DB12 F-52
50000060 F-54 F-57
50000060 F-59 F109
50000060 F111 FD00
50000060 FD03 FD31
50000060 FD33 FK00
50000060 FK03 FY1R
50000060 FY1R F109
50000060 FYLT HQ*
50000060 HS* KP05

Nov 3 '06 #2
Kevin, you are correct. I don't know how to cut and paste from Excel into
this forum without the spacing getting all goofy. Maybe I should just use
Notepad next time.

Good question. We have to assume and it won't be the case, but assume FD00
to FD99. All transaction values usually start with two alpha characters: AA,
MM, VA, FB or one, such as F- or V-. Should never start with a number. Would
it be easier if I sent a text file with all the values?

Thanks for looking.

Mark

"Kc-Mass" <co********@comcast.netwrote in message
news:ib******************************@comcast.com. ..
>I assume the first row is supposed to be
50000060 0 Al09
second is
50000060 AL11 Al13

Yes?

When you have something like FD33 FK00

How do we know how high the FD series goes ?

Kevin C

"Mark" <m.*******@snet.netwrote in message
news:IA****************@newssvr12.news.prodigy.com ...
>>I am relatively new to Access. I can join tables and run queries but I am
stumped on this one. I have a SAP table downloaded called Roles that
contain a range of values for transactions. There is another table with
all the transaction values. The Roles table has a value From and To that
can contain wildcards such as "*". The "F-52,54,57" etc. type transactions
are actual values. So, F-54 to F-57 would be F-54, F-55, F-56, F-57. My
dilemma is I need to decode the From To so that I can get the appropriate
values from my Transaction table. This has to be clever enough to decode
the range and lookup any values that fall within that range. Here is what
one role has for ranges. Any ideas? Thanks

ROLE FROM TO
50000060 0 AL09
50000060 AL11 AL13
50000060 AL16 CKMD
50000060 DB05 DB07
50000060 DB12 F-52
50000060 F-54 F-57
50000060 F-59 F109
50000060 F111 FD00
50000060 FD03 FD31
50000060 FD33 FK00
50000060 FK03 FY1R
50000060 FY1R F109
50000060 FYLT HQ*
50000060 HS* KP05


Nov 3 '06 #3
Send the two tables in an MDB file with nothing else.

"Mark" <m.*******@snet.netwrote in message
news:dU****************@newssvr12.news.prodigy.com ...
Kevin, you are correct. I don't know how to cut and paste from Excel into
this forum without the spacing getting all goofy. Maybe I should just use
Notepad next time.

Good question. We have to assume and it won't be the case, but assume FD00
to FD99. All transaction values usually start with two alpha characters:
AA, MM, VA, FB or one, such as F- or V-. Should never start with a number.
Would it be easier if I sent a text file with all the values?

Thanks for looking.

Mark

"Kc-Mass" <co********@comcast.netwrote in message
news:ib******************************@comcast.com. ..
>>I assume the first row is supposed to be
50000060 0 Al09
second is
50000060 AL11 Al13

Yes?

When you have something like FD33 FK00

How do we know how high the FD series goes ?

Kevin C

"Mark" <m.*******@snet.netwrote in message
news:IA****************@newssvr12.news.prodigy.co m...
>>>I am relatively new to Access. I can join tables and run queries but I am
stumped on this one. I have a SAP table downloaded called Roles that
contain a range of values for transactions. There is another table with
all the transaction values. The Roles table has a value From and To that
can contain wildcards such as "*". The "F-52,54,57" etc. type
transactions are actual values. So, F-54 to F-57 would be F-54, F-55,
F-56, F-57. My dilemma is I need to decode the From To so that I can get
the appropriate values from my Transaction table. This has to be clever
enough to decode the range and lookup any values that fall within that
range. Here is what one role has for ranges. Any ideas? Thanks

ROLE FROM TO
50000060 0 AL09
50000060 AL11 AL13
50000060 AL16 CKMD
50000060 DB05 DB07
50000060 DB12 F-52
50000060 F-54 F-57
50000060 F-59 F109
50000060 F111 FD00
50000060 FD03 FD31
50000060 FD33 FK00
50000060 FK03 FY1R
50000060 FY1R F109
50000060 FYLT HQ*
50000060 HS* KP05



Nov 3 '06 #4

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

Similar topics

4
by: jason | last post by:
Hi Guys, I have an interesting challenge: We are about to begin building magazine adverts with specific query string urls attached to a particular boat page which let us know which magazine...
2
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
20
by: wolftor | last post by:
Would anyone be willing to beta test my application for me and give me some feedback? I can give you feedback in exchange (ie. if there are parts you're interested in knowing how it was done) or I...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
4
by: David Siroky | last post by:
Hi! I'm trying to connect to a MDB file via ODBC like this: char *DSN = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\dev-cpp\\test\\1.mdb"; SQLAllocEnv(&env); SQLAllocConnect(env,...
9
by: Fish Womper | last post by:
I am at best a part time developer of Access databases. I use Access 2.0, as this is all my employer has on its computers. Even so, to use this ancient version requires a fairly convoluted...
1
by: Charles Wilson | last post by:
Can someone point me to some good instructions on using the WinInet.dll functions from VBA? I need to interact with a MySQL database via HTTP strings. We already have the database set up and a...
3
by: perfectclick.ng | last post by:
I'm a beginner of MS Access, I need adequate knowledge on how to programme. I have a challenge in my office to write a pragramme that will calculate a compensation for all our distributors. This is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.