whats lower than or equals to if statement? <= not working :<

  • Thread starter Thread starter h3llz
  • Start date Start date
h3llz said:
whats lower than or equals to if statement? <= not working :<


<= is the correct syntax for less then or equal to in VBA. Perhaps if you
post the actual code that's not working for you, some one may be able to see
what the problem is.

The data-type of the variables or constants being compared may make a
difference, too. Numbers or dates may not always compare the way you might
expect if they are being compared as text.
 
i = "1"
Do While i < (QryDat.Fields.Item("quantity") + 1)
cmoSelectQuantity.AddItem i
i = (i + 1)
Loop
i used the qrydat once, maybe can only use the same field once? first time
 
thanks anyway, i found the problem, im using txtProductQuantity.Caption for
the highest point
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Newbee 12
If boxes don't equal number then msgbox 7
CPU performance lower than usual 18
Count if Lower case 4
Adding "If Statement" with DSum 1
if then this statements 1
Excel Need Countifs Formula Help 0
IF Statement 5

Back
Top