statmanron
Programmer
In MS Access - VBA, I'm trying to group records while looping through a recordset. Is there a way I can create two dynamic if statements(1. condition to start the occurrence/looping, 2. end the occurrence) using fields within an Access form. For instance, I've created an MS Access form where a user can select a table's field name within a combo box, another field that lists conditional operators (+,-,/,*) an another field where a user has a choice whether the second value will be another field name or a random value. Is there a way to create dynamic if statements to avoid overloading numerous functions???
for example - If "analyze this dynamic statement" then
I know some of you will suggest creating a dynamic statement within the criteria of the sql statement but I dont want to do that because I want to loop the entire recordset. In addition, I would still require creating a dynamic 'if' to end the respective grouping/occurrence.
Would literals be considered?
Thank you
for example - If "analyze this dynamic statement" then
I know some of you will suggest creating a dynamic statement within the criteria of the sql statement but I dont want to do that because I want to loop the entire recordset. In addition, I would still require creating a dynamic 'if' to end the respective grouping/occurrence.
Would literals be considered?
Thank you