I have a dynamic sql statement that is built by query by form and the end result it is used as the datasource (dataset) for a datagrid. I want to use the same sql statement to create a crystal report. Problem is, how do I pass that string value to another form. This used to be easy.
My form which has the query by form...is frmCriteria
There is a function called BuildSQLString
My sql statement is sql = "SELECT * From tbl"
sql = sql & " WHERE " & sqlString
My form which has the report frmWalkList
I need to use the sql string to build the dataset for the
crystal report....I can't get it to work.
Dim CForm as frmCriteria
CForm.BuildString(sql)
My form which has the query by form...is frmCriteria
There is a function called BuildSQLString
My sql statement is sql = "SELECT * From tbl"
sql = sql & " WHERE " & sqlString
My form which has the report frmWalkList
I need to use the sql string to build the dataset for the
crystal report....I can't get it to work.
Dim CForm as frmCriteria
CForm.BuildString(sql)