Re: default value?



"Jane" <Jane@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7AF62675-BF3F-4A30-816F-52F9055F145A@xxxxxxxxxxxxxxxx
Tom,

Do you know it you can put a command button or something that you can uses
to turn on and off default values for all the fields at the same time? He
would like something he can click to do this so I don't have to keep
turning
things on and off. If so how would I do it? Thanks


How about having two different forms, one with default values set in the
controls and the other without? If you wanted a command button on a form
then AIUI you'd need a line of code for every control which would be a
nightmare to maintain ...

Me.txtText1.DefaultValue = "whatever"
Me.cboCombo1.DefaultValue = ... etc

Keith.
www.keithwilby.com


.



Relevant Pages

  • Re: newbie question: Can I modify MFC source code?
    ... When the command finally got to my window (which was the active ... it then looked up the command in its own table of controls and set the value in the ... may ak why I do not use structs for this, well I may do that in light of what I've learned here but my original problem was to store those const variables in const classes so I can also benefit from functionality of classes to do sum calculations on some parameters of these const commands. ... I try very hard not to use global variables these days and I've found it makes debugging and cleaning up much easier. ...
    (microsoft.public.vc.mfc)
  • Re: newbie question: Can I modify MFC source code?
    ... All edit controls were in the same range, ... When the command finally got to my window (which was ... what I've learned here but my original problem was to store those const ... I try very hard not to use global variables these days and I've found ...
    (microsoft.public.vc.mfc)
  • Intercept "Print" Word 2010
    ... "The FilePrint command, built-in or macro, seems to be obsolete. ... it appears that none of the built-in controls of the Backstage UI can ...
    (microsoft.public.word.vba.general)
  • Re: Intercept "Print" Word 2010
    ... This process was pretty straight forward in Word 2003 where I simply used macros named "FilePrint" and "FileDefaultPrint" to intercept the user actions and test for proper margins. ... I repurposed the "FilePrint" and "FileQuickPrint" ribbon controls and used a VBA callback to test for proper margins. ... "The FilePrint command, built-in or macro, seems to be obsolete. ... From what I have been able to determine so far, this "Print" button is a built-in control that is part a "GroupPrintSetting" built-in group, that is part of a "PrintTab" built-in tab, that is part of the new Backstage UI. ...
    (microsoft.public.word.vba.general)
  • Re: More ASP.Net Newbie Questions
    ... The Command is then what you're doing with this connection, ... In regards to your final point, making grids and controls in general do ... > Connection and Recordset objects into, like, 37 different things. ...
    (microsoft.public.dotnet.framework.aspnet)