Vba example updating a text box
I believe everything you say : D Anyway, I tried this: Private Sub txt Vat Rate_After Update() Dim dbs As Object Set dbs = Application.
All Tables("tbl SALES") was all highlighted in yellow. Current Data Dim my Table As Table Def Set my Table = dbs. I tried (1) and (2) but couldn't get the field's default value to update. I really do appreciate you making those suggestions.
To see the steps for creating a User Form, please watch these 3 short video tutorials. In the videos, Excel 2003 is used, and the same steps can be followed in later versions.
When saving the file in Excel 2007 or later, save as a macro-enable file type.
The All Tables collection applies to the Current Data or Code Data object. I tried this: Private Sub txt Vat Rate_After Update() Dim db As DAO. Table Def Dim fld As DAO.field 'Initialize Set db = Current Db() Set mytable = db.
Table Defs("tbl Sales") 'instead of =alltables("tblsales")--I do not recall a fucntionalltables() Phil Date" id="ctl00_m_m_i_ctl00_gr_ctl07_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="4272715" / You might begin your code thusly: Dim db As DAO. Table Defs("tbl Sales") 'instead of =alltables("tblsales")--I do not recall a fucntionalltables() Phil Date Yes, you're doing something daft - you're believing I know what I'm talking about when I post "air code." :<( I did a little more digging. Thanks for your time, Reg." id="ctl00_m_m_i_ctl00_gr_ctl13_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="4277997" / Hello Phil, Thank you so much for taking the time to reply. Another user has the table open.” In the Debug screen, the line “mytable.
In this example, inventory data is stored on a hidden worksheet, where it is protected from accidental damage or deletion.