latex88
Registered User.
- Local time
- Today, 02:12
- Joined
- Jul 10, 2003
- Messages
- 198
I have a continuous form that is bound to a table. I have a button in the records, so that when a record is selected, a text box (txtAddressSelected) at the footer becomes visible and is filled with the data from the record selected. The control source of the text box is a function, which is tied to a global variable that is set equal to the aforementioned record when selected. That process works fine.
However, when there is no record upon the form opens, I have a text box (txtNewAddress) in the footer of the same form that allows the user to enter new data, and upon pushing a button, the same text box (txtAddressSelected) is supposed to show the new data filled. In the code I have it requery (me.txtAddressSelected.requery). When I run it, I see it doing its thing, I see the textbox flashing real quick, but the box remains empty. I have checked the function and the global variable. They both show up in the Immediate window, so I know the data is passed correctly. I have been debugging it for hours, but I just can't get txtAddressSelected to show the new data entered. Any suggestions? I'm sure it's something stupid, but I'm game for humiliation at this point.
However, when there is no record upon the form opens, I have a text box (txtNewAddress) in the footer of the same form that allows the user to enter new data, and upon pushing a button, the same text box (txtAddressSelected) is supposed to show the new data filled. In the code I have it requery (me.txtAddressSelected.requery). When I run it, I see it doing its thing, I see the textbox flashing real quick, but the box remains empty. I have checked the function and the global variable. They both show up in the Immediate window, so I know the data is passed correctly. I have been debugging it for hours, but I just can't get txtAddressSelected to show the new data entered. Any suggestions? I'm sure it's something stupid, but I'm game for humiliation at this point.