dgoulston
Hasn't Got A Clue
- Local time
- Today, 03:41
- Joined
- Jun 10, 2002
- Messages
- 403
hay ok here is the problem
#############################
If bit(0) Then
With rst
.Edit
![0] = "X"
.Update
End With
End If
##########################
and i do this for bit(0) through to bit(20), the colomn names are o through to 20
is there a way to do it like:
#########################
dim n as integer
for n = 0 to 20
If bit = true Then
With rst
.Edit
![n] = "X"
.Update
End With
End If
next n
#######################
i have tried it like above and it does not let you use a varible as the colomn name.
is there a way that it will let me?
thanks
DAL
#############################
If bit(0) Then
With rst
.Edit
![0] = "X"
.Update
End With
End If
##########################
and i do this for bit(0) through to bit(20), the colomn names are o through to 20
is there a way to do it like:
#########################
dim n as integer
for n = 0 to 20
If bit = true Then
With rst
.Edit
![n] = "X"
.Update
End With
End If
next n
#######################
i have tried it like above and it does not let you use a varible as the colomn name.
is there a way that it will let me?
thanks
DAL