Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
select max(SubString(ColumnName,Len(ColumnName)-1,Len(ColumnName))) from TableName


how to write this type of query in ms access

Hi please send the query in My Sql And also Ms Access

[edit]Don't ask the question in the subject - that should be a brief description to interest those who might know the answer - OriginalGriff[/edit]
Posted
Updated 6-Jan-11 1:53am
v2
Comments
Rajesh Anuhya 6-Jan-11 8:04am    
Try yourself before posting question.., Google is your friend

Select MAX(MID(ColumnName,Len(ColumnName)-1,Len(ColumnName))) from TableName


I've gathered that information from three different access KB pages.

You too have a good review of it.

Mid[^].
Len[^].
Max[^]
 
Share this answer
 
v2
Comments
Rajesh Anuhya 6-Jan-11 8:03am    
Good Answer +5
#realJSOP 6-Jan-11 8:20am    
Don't spoon-feed them - they won't learn anything.
Hiren solanki 6-Jan-11 8:21am    
Thanks john for advice. but OP have asked question like "what is replacement for substring in MS ACCESS" ? that could make sense.
#realJSOP 6-Jan-11 8:24am    
It's easily answered with minimal effort on his part. That's my whole point. We're competing for jobs with these lazy "programmers" who can barely pour piss out of a boot even with instructions written on the heel.
Hiren solanki 6-Jan-11 8:33am    
That's very well said, john
Why don't you break the select statement down into its component parts, and google each one? That's what I would have to do to answer your question, and no doubt many others here would have to do as well. For instance, googling "ms access max statement" returns 14.4 MILLION results, amonfg them is this link:

http://www.databasedev.co.uk/access_max_function.html[^]

EDIT ============

Are you down-voting this because I tried to get you to make some sort of effort of your own, or because I didn't spoon-feed you the precise translation? In either case, it indicates poor social skills on your part.

 
Share this answer
 
v3
Comments
JF2015 6-Jan-11 8:45am    
Countering the idiot that downvoted this reasonable answer - 5'ed
wizardzz 6-Jan-11 10:32am    
Why was this downvoted in the first place?
#realJSOP 6-Jan-11 11:20am    
@wizardzz - Who knows? I posted a coule of the most probable theories...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900