Question : MYSQL SORT BY PRICE DESC

Greetings I have a table with a price field (VARCHAR 25)
that field can be one of the following
1) blank
2) have an actual price (ex. 50000)
3) Free
4) Please Contact

I want to sort by price Highest price (prcie DESC) but have the highest price to lowest, then Free, then Please Contact, then Blank

exxample:

$500
$300
$20
Free
Free
Please Contact
Please Contact
Blank
Blank
Blank
Blank

I would also like to sort by lowest price (price ASC) and need it displayed in the following order:

Free
Free
Free
$20
$300
$500
Please Contact
Please Contact
Blank
Blank
etc.

What would be the best way to go about doing thiis without necessarily having to change the price VARCHAR to price INT

Your help is appreciated!!!

Answer : MYSQL SORT BY PRICE DESC

Question 1. Do I replace the code I put in the ON OPEN EVENT with:
Private Sub VerifyNameAndNumber()
If Len(Me.ProjectName) > 0 And Len(Me.ProjectNumber) > 0 Then
    Dim c As Control
        For Each c In Me.Section(0).Controls
            If c.ControlType = acTextBox Or c.ControlType = acCommandButton Then
                'MsgBox c.Name
                c.Enabled = True
            End If
        Next c
End If

No, don't you remember?
What did I post here 33293015 ?
Here is the entire post again:
<I think we need to add some code to disable the Comboboxes?>
Bingo!

So try this:

Private Sub VerifyNameAndNumber()
If Len(Me.ProjectName) > 0 And Len(Me.ProjectNumber) > 0 Then
    Dim c As Control
        For Each c In Me.Section(0).Controls
            If c.ControlType = acTextBox Or c.ControlType = acCommandButton Or c.ControlType = acCombobox Then
                'MsgBox c.Name
                c.Enabled = True
            End If
        Next c
End If

;-)

No the $50,000 Dollar question is:
Can you adapt this to code *enable the comboboxes in the "VerifyNameAndNumber" sub procedure?

;-)

Jeff
\
Random Solutions  
 
programming4us programming4us