usingVB
Programmer
- Jan 1, 2009
- 8
Hi all,
Just wondering if there is a way in VB to select a field/column in a table based on part of its name.
For example, I am currently getting a column by:
Name.field = "USA_ID"
However, I want to be able to use different datasets with the code, and therefore get the column that ends in "_ID" - So I could have UK_ID, Australia_ID etc...We can assume there will only ever be one column that will end with "_ID"
..something like *_ID?
Can I do this?
Hope this makes sense..
Cheers
Just wondering if there is a way in VB to select a field/column in a table based on part of its name.
For example, I am currently getting a column by:
Name.field = "USA_ID"
However, I want to be able to use different datasets with the code, and therefore get the column that ends in "_ID" - So I could have UK_ID, Australia_ID etc...We can assume there will only ever be one column that will end with "_ID"
..something like *_ID?
Can I do this?
Hope this makes sense..
Cheers