hi to all.
I'm quite new to VBS, but I could use some help.
I have a table in an Access mdb like this...
I want to step through each X value then do an analysis based on the Type value. In VBA, I would just set up a recordset of X values, then step through it. But, each step involves a lot of work, so I am required to frequently do a Compact/Repair to keep the mdb's size < 2GB.
For this reason, I 'run' the Access code from VBS so that I can close the mdb file and do the compaction after every new X value.
If the X values were 1, 2, 3, 4..., I could just use a simple For-Next in the VBS code. Here's the question - what is a good way to feed the X values into the VBS code so that I can loop through them?
thanks for any clues
teach314
I'm quite new to VBS, but I could use some help.
I have a table in an Access mdb like this...
Code:
X Type
--------
11 234
14 7
22 98
23 118
36 47
etc...
I want to step through each X value then do an analysis based on the Type value. In VBA, I would just set up a recordset of X values, then step through it. But, each step involves a lot of work, so I am required to frequently do a Compact/Repair to keep the mdb's size < 2GB.
For this reason, I 'run' the Access code from VBS so that I can close the mdb file and do the compaction after every new X value.
If the X values were 1, 2, 3, 4..., I could just use a simple For-Next in the VBS code. Here's the question - what is a good way to feed the X values into the VBS code so that I can loop through them?
thanks for any clues
teach314