Hi, I hope someone will be able to help with on this. I have a dao recordset for which the sql is created on the fly dependent on certain criteria like this:
sqlStringIssueCode = "Select [" & IssueID & "],[" & issueselect & "] from [" & TableName & "] where [" & IssueID & "] = " & graceStartIssue
where IssueID etc are variables equating to the column names.
I now want to access the one of the recordset objects but I do not know the name of the column, as this is contained in a variable and will change each time the code is run.
Is there a way to use the variable in conjunction with the rs!column name command or another way of accessing the value in this column, as I can't see a way of getting to it at the moment.
Thanks in advance.
Stef
sqlStringIssueCode = "Select [" & IssueID & "],[" & issueselect & "] from [" & TableName & "] where [" & IssueID & "] = " & graceStartIssue
where IssueID etc are variables equating to the column names.
I now want to access the one of the recordset objects but I do not know the name of the column, as this is contained in a variable and will change each time the code is run.
Is there a way to use the variable in conjunction with the rs!column name command or another way of accessing the value in this column, as I can't see a way of getting to it at the moment.
Thanks in advance.
Stef