R
Rich
Hello,
I have to create a table in an Access mdb (remotely) on
the fly.
Create Table tbl1(fld1 Integer, fld2 varchar(10), fld3...)
Then I have to insert data:
Insert Into tbl1 Values(" & val1 & ", '" & val2 & "',...")"
I would like to make this dynamic rather than hardcoding
the parameters. Is there some kind of object that I could
populate with the parameters that I need to use to create
tbl1 or even just to insert values into tbl1? The idea is
to make this dynamic because the table I have to create on
the fly will vary in number of columns. So rather than
hardcoding these parameters I wanted to loop through a
resultset to see how many columns I need (and what
datatypes) and then create and populate the table using an
ADO command object, unless there is a better way.
Thanks,
Rich
I have to create a table in an Access mdb (remotely) on
the fly.
Create Table tbl1(fld1 Integer, fld2 varchar(10), fld3...)
Then I have to insert data:
Insert Into tbl1 Values(" & val1 & ", '" & val2 & "',...")"
I would like to make this dynamic rather than hardcoding
the parameters. Is there some kind of object that I could
populate with the parameters that I need to use to create
tbl1 or even just to insert values into tbl1? The idea is
to make this dynamic because the table I have to create on
the fly will vary in number of columns. So rather than
hardcoding these parameters I wanted to loop through a
resultset to see how many columns I need (and what
datatypes) and then create and populate the table using an
ADO command object, unless there is a better way.
Thanks,
Rich