![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Heya, Thanks for the help the other day it was most useful. Wonder if any one would be able to help with this one. I have an array of controls (those pesky text boxes from my last question), labelled A1-A7 down to L1-L7 Basically I want to write a snippet of code that'll works it's way through the array resetting each text box to a desired value. I've had a look about the web and thanks to the faq posted on this group I found some code that did what I wanted but only for one line of the array. It works because each line contains incrementally numbered controls. The problem is how do I get the A,B,C.....L bit to increment with each loop. I want to do a loop with J = A to L and trap the 1 to 7 loop within, but how do you increment a character. Does access even have a character type? Hardeep. ---- Dim j As ????? <<< Dunno??? For j = A To L Dim i As Integer For i = 1 To 7 Me("j" & CStr(i)).Value = " ? " Next Next |
#3
| |||
| |||
|
|
Heya, Thanks for the help the other day it was most useful. Wonder if any one would be able to help with this one. I have an array of controls (those pesky text boxes from my last question), labelled A1-A7 down to L1-L7 Basically I want to write a snippet of code that'll works it's way through the array resetting each text box to a desired value. I've had a look about the web and thanks to the faq posted on this group I found some code that did what I wanted but only for one line of the array. It works because each line contains incrementally numbered controls. The problem is how do I get the A,B,C.....L bit to increment with each loop. I want to do a loop with J = A to L and trap the 1 to 7 loop within, but how do you increment a character. Does access even have a character type? Hardeep. ---- Dim j As ????? <<< Dunno??? For j = A To L Dim i As Integer For i = 1 To 7 Me("j" & CStr(i)).Value = " ? " Next Next Every character has an ASCII value. There are two useful functions, |
| Bob |
#4
| |||
| |||
|
|
Heya, Thanks for the help the other day it was most useful. Wonder if any one would be able to help with this one. I have an array of controls (those pesky text boxes from my last question), labelled A1-A7 down to L1-L7 Basically I want to write a snippet of code that'll works it's way through the array resetting each text box to a desired value. I've had a look about the web and thanks to the faq posted on this group I found some code that did what I wanted but only for one line of the array. It works because each line contains incrementally numbered controls. The problem is how do I get the A,B,C.....L bit to increment with each loop. I want to do a loop with J = A to L and trap the 1 to 7 loop within, but how do you increment a character. Does access even have a character type? Hardeep. ---- Dim j As ????? <<< Dunno??? For j = A To L Dim i As Integer For i = 1 To 7 Me("j" & CStr(i)).Value = " ? " Next Next |
![]() |
| Thread Tools | |
| Display Modes | |
| |