R
Rupali
I am trying to add a field to an Access table through VB.
I need to find out first whether that field exists in that
table or not. and if that field does not exist in the
table then only will I alter the table. I am using this
code..
Set rs1 = con.OpenSchema(adSchemaTables)
Do While Not rs1.EOF
If (rs1!Table_name) = table_name Then
Set rs3 = con.OpenSchema(adSchemaColumns)
Do While Not rs3.EOF
If rs3!Column_Name = field_name Then
but rs3 recordset is getting column from each and every
table in the database. I need to get the columns of the
particular table only.
Please give the solution for my problem.
Thanks
I need to find out first whether that field exists in that
table or not. and if that field does not exist in the
table then only will I alter the table. I am using this
code..
Set rs1 = con.OpenSchema(adSchemaTables)
Do While Not rs1.EOF
If (rs1!Table_name) = table_name Then
Set rs3 = con.OpenSchema(adSchemaColumns)
Do While Not rs3.EOF
If rs3!Column_Name = field_name Then
but rs3 recordset is getting column from each and every
table in the database. I need to get the columns of the
particular table only.
Please give the solution for my problem.
Thanks