473,395 Members | 1,675 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,395 software developers and data experts.

Display only Top / Max Revision

102 64KB
Hi dear friends,
I am making a database regarding Drawings Incoming / Outgoing history.
I have a table's fields
DWG#
Rev
Date
Transmit
Incharge

I have a DWG# which has following Rev
0A
0B
0C
2A
2B
2C
3A

Now 3A is the latest. I want to make a query based report which shows the DWG status of only Top / Max Rev of the Drawing.
When I create & run such kind of query, it shows all the records. But I want only One Record of the Top Rev / Max Rev.
Please some one help me... Access Table is attached. Thanks...
Irshad Ahmed
Attached Files
File Type: zip testing.zip (329.7 KB, 87 views)
Sep 22 '11 #1
10 2053
Narender Sagar
189 100+
Hi
I think the problem is with Table structure.
You have all Text fields for REV etc..
Access is unable to understand or compute maximum or minimum values in a Text Field (This is what I understand)
Sep 22 '11 #2
irsmalik
102 64KB
So what you suggest what should be the field format ?
How can we define AlfaNumaric. Plz guide.
Sep 22 '11 #3
Narender Sagar
189 100+
Before giving any suggestion, I would like to know your logic behind REV field. I mean, why do you want to have alphanumeric field only, for REV.
If it is really required to have alphanumeric character there, then you can make a separate table where you can maintain a numeric field and a alphanumeric field (Text field). Then you can give reference of this table in your original table.
Sep 22 '11 #4
irsmalik
102 64KB
This is the requirement of DWG table... Revision of a drawing will be in the Txt + Numaric.... like
0A
1A
2A
3A
so plz have a look at this. thanks
Sep 22 '11 #5
Narender Sagar
189 100+
I have another idea, (I tried it on your sample database)
If your requirement is to find out Max/Top REV then you can also do it with Date field (which is already there).
I also created a crosstab query (another view of looking at the data)
Pl. check attachment.
HTH
Attached Files
File Type: zip testing3.zip (45.3 KB, 72 views)
Sep 22 '11 #6
irsmalik
102 64KB
Thanx dear Narender.... but I need it in Select Query. coz
I need Rev in single line... (one column).
Sep 22 '11 #7
Narender Sagar
189 100+
Just change the last column in crosstab query to REV (In design mode) you'll get the REV in columns.
Sep 22 '11 #8
irsmalik
102 64KB
Yes it works...
Thanks dear.... For a nice help....
In future... Can i consult such kind of help. ?
Sep 22 '11 #9
Rabbit
12,516 Expert Mod 8TB
Just a quick note, most SQL engines (Access included), can calculate a max or min on text fields. There are some caveats though. One, it calculates based on a byte by byte comparison from left to right. This can result in unexpected results if numbers are not carefully padded. And two, it calculates it using the ASCII value of the character.
Sep 22 '11 #10
Narender Sagar
189 100+
Thanks Rabbit :)
Irshad, glad to know it works as per your expectation.
Yes, you can seek help from the group. and I am confident there are so many great and knowledgeable persons who are eager to help. :)
Sep 22 '11 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: JCO | last post by:
How do you do this. I would like for it to be as dynamic as each page refresh. Thanks
4
by: Burghew | last post by:
Hi All, I have 2 fields called document & Revision which contains the titles for the documents to be stored in the databse it gets filled up as the user enters them and the revison numbers...
13
by: IndianaJonesWB | last post by:
I have an Access Project as a front end for a SQL DB. I have a master copy and distribute copies of it to my other users. I would like to display a revision count on the first Main Form so that...
2
by: Mark | last post by:
In the AssemblyInfo.cs page of a ASP.NET project, there is a defaulted property of: It's my understanding that this indicates a Major Version of 1, a Minor Version of 0, and a Build and...
3
by: Karsten Grombach | last post by:
How can I display the current build version of my webapplication at runtime? i.e. the version I set in my web deployment project. regards and thanks karsten
4
by: johnk | last post by:
I have a table of items, with revision numbers. I need to extract the items with highest revision number. The items may be listed several times and I don't know what the highest revision number...
4
by: Mike L | last post by:
Error occurs on "System.Deployment.Application.ApplicationDeployment.CurrentDeployment" ** Here is my code private void frmMain_Load(object sender, System.EventArgs e) {...
10
by: Galethog | last post by:
I have a repository of aircraft technical documents that are converted to HTML. The markup is incredibly ugly now because of the decision to use table-based formatting. I'd like to remove...
3
by: Jim Tittsler | last post by:
Is there a standard recipe for getting the subversion revision number into my Python-based application each time I package it up with distutils? (Not just the package name, but also a string that...
9
by: Zim Babwe | last post by:
Doesn't anyone display the version and revision number in their VB.NET application on the "about" screen or somewhere else? I need to know how to display that information also. Any help would...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.