Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Access: For loops In SQL

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-02-22 : 23:39:23
manjit writes "I have a problem where i am trying to create an SQL depending on a certain number of values.

For example STRSQL = "select ...number.. where temp = "&myArray1(1)&" or temp = "&myArray1(2)&" or temp = "&myArray1(1)&" ....etc...."

the problem is i dont have a set number of array elements. i also want to add the number i select for each array element to come up with a total value for the numbers.

i have considered using a For loop in the sql...is this possible?

i am using Microsoft access 2000

i would appreciate any help or examples

thanks

manjit"
   

- Advertisement -