|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
I want to find the numbers between two numbers (entered by input box).But I get error....can I have some help?Code:
Dim a As Double
Dim b As Double
a = InputBox("First number?")
b = InputBox("Second number?")
Data1.RecordSource = "select * from Students where x>a And x<b"
Data1.Refresh
|
|
#2
|
|||
|
|||
|
Quote:
Try this: Code:
Dim a As Double
Dim b As Double
a = InputBox("First number?")
b = InputBox("Second number?")
Data1.RecordSource = "select * from Students where x between " & a & " And " & b
Data1.Refresh
|
|
#3
|
||||
|
||||
|
Modify your query to
Data1.RecordSource = "select * from Students where x> " & a & " And x< " & b Quote:
__________________
Do, or do not. There is no 'try'. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Need help with vb query!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|