Brettrb
Aug 12th, 1999, 08:09 PM
I am now creating a report in Microsoft Access that will need to use strings to come up with the information source.
i.e. A user submits information on a form which determines for a query which fields to take from a table and which records. Now the report needs to take the information from the new query, which changes each time the user uses the form. As far as I know (please tell me if otherwise), I have to know the specific names of the fields I want to call from the query (their names from in the original table), so if I want to pull information from the new query I need to use a string in visual basic to link to the new field (using information from the form). As of yet I have been unable to do this. I need to set the text boxes to the query's fields, but I need to use the information from the user to know which fields to call.
Please help if you know how I can use strings in Visual Basic and then to place it into the text box (I can almost do the string manipulation now, but Access doesn't like me to just set a text box equal to some string)
i.e. A user submits information on a form which determines for a query which fields to take from a table and which records. Now the report needs to take the information from the new query, which changes each time the user uses the form. As far as I know (please tell me if otherwise), I have to know the specific names of the fields I want to call from the query (their names from in the original table), so if I want to pull information from the new query I need to use a string in visual basic to link to the new field (using information from the form). As of yet I have been unable to do this. I need to set the text boxes to the query's fields, but I need to use the information from the user to know which fields to call.
Please help if you know how I can use strings in Visual Basic and then to place it into the text box (I can almost do the string manipulation now, but Access doesn't like me to just set a text box equal to some string)