I've attempted to set this in many way, but I am having trouble. Below are two sets of code I have tried to get a unbound text box to link to a linked Excel document. Neither of them work and I am not sure why. Any suggestions would be appreciated.
Dim Address As String
Address = "[Forms]![frmMenu]!cboModel.column(3)"
Me.txtExcel.Value = DLookup(Address, "SigandSun2005")
Me.txtExcel.Value = DLookup("[Forms]![frmMenu]!cboModel.column(3)", "SigandSun2005")
I am not sure why neither of them work. The value that is supposed to be passed on is "F1" and if I use me.txtExcel.value=DLookUp("F1","SigandSun2005") works to display the value just fine but the form represents over 100 different choices and can be any of them. On this cboModel box is the correct cell for the choice made, but the information is not passing on. Any idea how to fix it?
Dim Address As String
Address = "[Forms]![frmMenu]!cboModel.column(3)"
Me.txtExcel.Value = DLookup(Address, "SigandSun2005")
Me.txtExcel.Value = DLookup("[Forms]![frmMenu]!cboModel.column(3)", "SigandSun2005")
I am not sure why neither of them work. The value that is supposed to be passed on is "F1" and if I use me.txtExcel.value=DLookUp("F1","SigandSun2005") works to display the value just fine but the form represents over 100 different choices and can be any of them. On this cboModel box is the correct cell for the choice made, but the information is not passing on. Any idea how to fix it?