display an option group

J

jnewl

developing an application for our call center.
i want an option group to display only when a field in the table is greater
than zero.

how do i code that? can build option groups with no problem, but can not
determine how to display based on other conditions.

thanks for your help
 
D

Damon Heron

This is a form bound to the table, correct?
First, set the option group visible property to no.
in the form's current event :

Private Sub Form_Current()
If Me.Textbox >0 Then 'Textbox bound to field
Me.optgrp1.Visible = True
Else
Me.optgrp1.Visible = False
End If
End Sub

Substituting your textbox name and option group name, of course.

Damon
 
F

fredg

developing an application for our call center.
i want an option group to display only when a field in the table is greater
than zero.

how do i code that? can build option groups with no problem, but can not
determine how to display based on other conditions.

thanks for your help

Code the Form's Current event:
Me.[OptionGroupName].Visible = Me.[TextControlName] >0

Place the same code in the [TextControlName] AfterUpdate event.
 
J

jnewl

thanks for your help

fredg said:
developing an application for our call center.
i want an option group to display only when a field in the table is greater
than zero.

how do i code that? can build option groups with no problem, but can not
determine how to display based on other conditions.

thanks for your help

Code the Form's Current event:
Me.[OptionGroupName].Visible = Me.[TextControlName] >0

Place the same code in the [TextControlName] AfterUpdate event.
 
J

jnewl

thanks for your help

Damon Heron said:
This is a form bound to the table, correct?
First, set the option group visible property to no.
in the form's current event :

Private Sub Form_Current()
If Me.Textbox >0 Then 'Textbox bound to field
Me.optgrp1.Visible = True
Else
Me.optgrp1.Visible = False
End If
End Sub

Substituting your textbox name and option group name, of course.

Damon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

option group and display in report ?? 1
Access Create option group without using wizard? 2
Arithmatic on Dates 2
Option Group - Clear Yes/No 8
option group 1
Dual Display Question 2
Option Group Option Buttons 3
Option group event 29

Top