
Originally Posted by
pbaldy
Happy to help! To clarify, a combo reference needs the column specified if you want a column other than the bound column.
Which is my case.
New issue: The following
Code:
?nz(DLookUp("CamerasTotal","tblShoots","tblShoots!ShootName = '" & [Forms]![frmShotList]![cboShootName].column(1) & "'"),"No cboShootName")
works in the immediate window (when form is in form view), giving the expected result whether cboShootName is populated or not. It also works as the control source for the textbox after pasting it in in design view and going to form view, whether the cbo is populated or not. But leaving it as the control source and closing the form causes Access to crash when next opening the form in form view. This probably has something to do with the fact that the cboShootName is null on form load (despite my using the Nz function), and I'll deal with that appropriately. But the problem sure has cost me a lot of time to figure out. To facilitate development, more precise insight into what's happening would be appreciated. Is there some sort of OnLoad catch-all error handler?
Thx, Ron