![]() |
Initializing control values of a form
I'm working with a form in VBA and I'm trying to initialize the value of a
couple of textbox.values priior to displaying the form. The problem is I'm seeing the values appear or not appear in no clearly definable pattern. If I put a breakpoint in the code before the value is set and step it forward, I can see the data go in and when I release the break it does show up in the form as expected. But when I take the break off, it stops working again. I have two fields doing this, one an integer and another a date. I fixed the date anommaly by assigning the date to a variable and using the variable to set the form value. But I can't seem to get the integer value to work consistently. It's really dirt simple code so I'm at a loss to understand what is happening.... Anyone have any ideas? |
Initializing control values of a form
Post the code for review
-- Cheers Nigel "TimK" wrote in message ... I'm working with a form in VBA and I'm trying to initialize the value of a couple of textbox.values priior to displaying the form. The problem is I'm seeing the values appear or not appear in no clearly definable pattern. If I put a breakpoint in the code before the value is set and step it forward, I can see the data go in and when I release the break it does show up in the form as expected. But when I take the break off, it stops working again. I have two fields doing this, one an integer and another a date. I fixed the date anommaly by assigning the date to a variable and using the variable to set the form value. But I can't seem to get the integer value to work consistently. It's really dirt simple code so I'm at a loss to understand what is happening.... Anyone have any ideas? |
All times are GMT +1. The time now is 07:17 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com