|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Need Help with if/then Statement
Hello All,
Excited bout being part of the group. Need help on a what may be a simple if/then statement indicating currency value for product. I would like to set a control on an access database form that shows a value for a particular product. The application deals with parking permit stickers where a customer can purchase several differnet types of permits"A","B"or"AB" etc. Each permit has a specific value. It is the value I want to display depending upon the type of permit the customer would like to purchase. Thanks in Advance for the help |
|
#2
|
|||
|
|||
|
Ok, you've shown what you want to do, but not what problem(s) your having.
|
|
#3
|
|||
|
|||
|
How do you write the language for the solution
|
|
#4
|
|||
|
|||
|
There are multiple different methods to accomplish this, one of which could be something like:
Code:
Dim sDisplay As String
'assumes sPermit is the permit value in question
Select Case sPermit
Case "A"
sDisplay = "Permit A selected."
Case "B"
sDisplay = "Permit B selected."
Case "AB"
sDisplay = "Permit AB selected."
Case Else
sDisplay = "Unknown permit selected."
End Select
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Need Help with if/then Statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
![]() |
|