TOPIC: Hiding the label for a control in Access?
#1472
Hiding the label for a control in Access? 11 Months ago
I have a particular case where I want the label for a control to be hidden as I set it up in a grid type interface. The instance is that there are the same values duplicated for Day/Night... Day TakeOff's, Night TakeOff's, etc... So, I did:

Code:


(Grid (
  ((Static "") (Static "Time") (Static "Takeoffs") (Static "Landings") (Static "X. Cntry"))
  ((Static "Day") time_day takeoff_day landing_day x_country_day)
  ((Static "Night") time_night takeoff_night landing_night x_country_night)
))



The grid works great, but all my controls have the normal Prompt of things like "N. X-Cntry". I would like those to disappear, but for this instance only, not globally across the whole app.

Thanks,

Jeremy
 
 
#1477
Re:Hiding the label for a control in Access? 11 Months ago
If you specify fields by name, then Control.Construct automatically adds the prompt.

To avoid this you can just specify the control with its name, for example #(Number name: myfield)

Or to avoid duplicating the control if it's already specified in a Field_ definition, it looks like you can use: #(NoPrompt myfield)
 
 
andrew
 
#1481
Re:Hiding the label for a control in Access? 11 Months ago
Thanks, that works great.