SetBuilder
Programmer
I want to create a table with, say 99 fields. I don't know how many fields, but it will vary with the table I am creating. Field names are not important in this instance, so I want to name them "Field01" "Field02" ... "Field99" etc.
(ADOX format
I tried this:
with tblOrders.columns
for x = 1 to 99
.append "field" & x, adVarWChar
next x
end with
The Access 2000 Developer's handbook (Volume 2) gives a great example on page 240-241, but it does not allow for a variable name.
I look at DAO, and the same example, but again no variable name.
Maybe you can't do it. But I just assumed that if they want a string, you could assign a string to a value and give that, but it doesn't work.
BTW, I also tried "+" instead of "&"
(ADOX format
I tried this:
with tblOrders.columns
for x = 1 to 99
.append "field" & x, adVarWChar
next x
end with
The Access 2000 Developer's handbook (Volume 2) gives a great example on page 240-241, but it does not allow for a variable name.
I look at DAO, and the same example, but again no variable name.
Maybe you can't do it. But I just assumed that if they want a string, you could assign a string to a value and give that, but it doesn't work.
BTW, I also tried "+" instead of "&"