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
Error 1327 Invalid Drive - installing applications - "Documents" on network drive - offline file sycn
How do i mount and unmount exchange 2003 database
Running Count in Access Query
[Forms]![M1M2Rep].[cboTrnD<wbr />ept].[Colu<wbr />mn(3)] is not working
Access 2007 export to Excel 2007 not working
Word 2000 : how to reuse a footnote
How do I change the date format when submitting InfoPath form to a SharePoint Form Library?
Force user account picture w/Group Policy
Office 2007 can't save to network share.
Cannot run SQL 2005 SSIS Job