cleteh
06-07-2015, 11:32 PM
On a form I built in micorsoft access, while in design mode if i place the following code into the control source on the data tab for the textbox it displays the result I want but only after I close and reopen the form.
=DLookUp("[FORWRD_NAME]","File_No","[FILE_NO] = Form![FileNo]")
Is there a way to have this automatically display when I enter the file number into the FileNo textbox on the form?
Or way to update the textbox with the result by coding a command button?
I'd actually prefer to have the control source set to a field in a table to pass the value of this result but I can't find a way to display the result without using the control source.
Thank you for any help
=DLookUp("[FORWRD_NAME]","File_No","[FILE_NO] = Form![FileNo]")
Is there a way to have this automatically display when I enter the file number into the FileNo textbox on the form?
Or way to update the textbox with the result by coding a command button?
I'd actually prefer to have the control source set to a field in a table to pass the value of this result but I can't find a way to display the result without using the control source.
Thank you for any help