G
Guest
I would like to add a user ID to the current record. I know I can do that by
adding a bound field to the current form. Since I don't want to show it I
can make it invisibile. This works fine. However, the drawback is that I
cluter the form with fields that are not shown, and I need to do a
columnhidden = true to turn it off in datasheet view.
I tried several ways in vba, but they all get run time errors. I've tried
lines like:
Me.Form.Recordset!Creator = ShowUser
or
Me.Recordset!Creator = ShowUser
or
Me.Form.Recordset.Creator = ShowUser
where ShowUser is a function I built to return a user ID. However, none of
these lines seem to work. Is there a way to add information to the current
recordset without adding a control to the form?
adding a bound field to the current form. Since I don't want to show it I
can make it invisibile. This works fine. However, the drawback is that I
cluter the form with fields that are not shown, and I need to do a
columnhidden = true to turn it off in datasheet view.
I tried several ways in vba, but they all get run time errors. I've tried
lines like:
Me.Form.Recordset!Creator = ShowUser
or
Me.Recordset!Creator = ShowUser
or
Me.Form.Recordset.Creator = ShowUser
where ShowUser is a function I built to return a user ID. However, none of
these lines seem to work. Is there a way to add information to the current
recordset without adding a control to the form?