Microsoft
Software
Hardware
Network
Question : How do I find the max number in a field formatted as text?
I am using the following code to try to find the highest number in a field. The problem I am having is that the field is formatted as text (nothing I can do about that) so when the "highest" number is 3666, I am getting the result of "97."
How do I get the max number in a text field as if it were actually a number field?
Thanks,
George
Code Snippet:
1: 2:
Dim maxordnum As Integer maxordnum = DMax("[ordnum])", "[srvinv]")
Open in New Window
Select All
Answer : How do I find the max number in a field formatted as text?
Dim maxordnum As Integer
maxordnum = cint(DMax("format([ordnum]
,""0000"")
", "[srvinv]"))
Random Solutions
Can I create an array of objects?
Convienent way to plot addresses on a map
Outlook Anywhere - Exchange 2007 (SBS 2008) and Outlook 2003 / 2007
macro question which columns is the data changing
Table design to enforce interesting constraint logic
Conditional Formatting Wildcard
Web Browsers crash XP
I need to refresh the form record when subform record is clicked on.
Multi row trigger join
XP Machine takes long time (3 mins) to logon