Hello,
I have a line of code that I want to lookup a number and display it on to a textbox on a form. Once this has happened the next step is to do a calculation.
My line of code is
(MinCover is a Number, Display is Text, cboTableSelect is Text)
This puts the right number in to the textbox, however seems to treat it as text as once done the calculation doesn't work - however, if i type in the same number in to the textbox the calculation works fine, this is why I think my DLookup line is wrong.
Where am I going wrong please?
Thank you,
Malcolm
I have a line of code that I want to lookup a number and display it on to a textbox on a form. Once this has happened the next step is to do a calculation.
My line of code is
Code:
Forms!frmBackground!subfrmRestaurant!subfrmRestaurantBookingEdit!txtMinTableCovers = DLookup("MinCover", "tbl_Net_RestaurantTables", "Display = Forms!frmBackground!subfrmRestaurant!subfrmRestaurantBookingEdit!cboTableSelect")
(MinCover is a Number, Display is Text, cboTableSelect is Text)
This puts the right number in to the textbox, however seems to treat it as text as once done the calculation doesn't work - however, if i type in the same number in to the textbox the calculation works fine, this is why I think my DLookup line is wrong.
Where am I going wrong please?
Thank you,
Malcolm