I have a number of forms. Which form is displayed is determined by a field in a table.

i.e. Table:

ID | FormName
1 | frmAccountRecords
2 | frmContacts

Im then trying to pass that information to a function that is expecting a form variable.

Is it possible to pass the string as a form variable? In VBA I think it was possible using Eval(formstring), but that doesn't seem to work in VB.

Any help would be much appreciated.