|
-
Oct 5th, 2004, 03:26 PM
#1
Thread Starter
Member
MS Access tool to update field values
Hi
Is there an MS Access that will allow me to programatically update the Tag value for controls on a form?
For example I have 20 controls in a form, and I wish to add a value to the tag field on each control, based on a value from a file or database. I know I can do this at run time, but I was wondering if I can do this by updating the control at design time, without having to do this one control at a time manually?
Thanks
-
Oct 5th, 2004, 03:34 PM
#2
If they are the same type of control or they all have the .Tag property,
then you can select them all and then change the Tag property in
the properties window. It will change all selected controls to
what ever you type in as the value. Same as in VB.
HTH
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 5th, 2004, 04:07 PM
#3
Thread Starter
Member
No they are different
Thanks for the reply.
The values are different. Each control has a different value, and each value would be unique.
-
Oct 5th, 2004, 04:11 PM
#4
Then you would need to determine what event should be setting
or updating the tags. Then you could call a procedure to update
them.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 5th, 2004, 04:14 PM
#5
Something like this will update the tag properties every time the
recordset is navigated.
VB Code:
Option Explicit
Private Sub Form_Current()
Forms![MyForm]![MyControl1].Tag = "Some Value 1"
Forms![MyForm]![MyControl2].Tag = "Some Value 2"
Forms![MyForm]![MyControl3].Tag = "Some Value 3"
Forms![MyForm]![MyControl4].Tag = "Some Value 4"
Forms![MyForm]![MyControl5].Tag = "Some Value 5"
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|