只选择一个复选框? [英] select only one checkbox?

查看:56
本文介绍了只选择一个复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个横幅表格的表格tblBanners用户输入横幅的大小并从10中选择一个基板。所有这些基板都是复选框。

当用户选择一个子速率时,它计算价格并在sub_total中更新相同的并计算GST。


如果用户选择多个,我希望访问显示消息,说太多条目。请选择一个基板。


截至目前,我编写了代码,用于计算所有选定参数的价格。但我希望用户不要选择多个基材。


有人可以帮我这方面吗?


问候,

Asle

解决方案


大家好,


i有一个表格,用于限制在表格中的横幅tblBanners。用户输入横幅的大小并从10中选择一个基板。所有这些基板都是复选框。

当用户选择一个子速率时,它计算价格并在sub_total中更新相同的并计算GST。


如果用户选择多个,我希望访问显示消息,说太多条目。请选择一个基板。


截至目前,我编写了代码,用于计算所有选定参数的价格。但我希望用户不要选择多个基材。


有人可以帮我这方面吗?


问候,

Asle


如果您使用选项组而不是一堆复选框,您很快就会飞行!


祝你好运


Jim



如果您使用选项组而不是一堆复选框,您很快就会飞行!


祝你好运


Jim



感谢Jim ...我已经尝试了Option组之前。

i会检查出来。


问候,

Asle


< blockquote class =post_quotes>
感谢Jim ...我之前尝试过Option组。

i会检查出来。


问候,

Asle






我尝试使用选项组但我想保留27复选框。

选项组不允许超过20个。


可以通过程序方式完成吗?


我想要这样一种方式,当用户选择基板时,必须将其价格添加到TOTAL字段中。当他取消选择时,TOTAL必须为'0'。此外,Access必须提示过多条目的消息。当复选框数超过1时。


任何人都可以在这方面帮助我吗?


谢谢,

Asle


hi all,

i have a form for Banners bounded to table "tblBanners" where the user enters the size of the banner and select one substrate out of 10. all these substrates are checkboxes.
when user selects a subtrate, it calculates the price and update the same in sub_total and calculates the GST.

if the user select more than one, i want access to display message saying, "too many entries. please select only one substrate".

as of now, i wrote the code where it caluclates the price for all selected subtrates. but i want the user not to select more than one substrate.

could anyone help me in this regard?

regards,
Asle

解决方案

hi all,

i have a form for Banners bounded to table "tblBanners" where the user enters the size of the banner and select one substrate out of 10. all these substrates are checkboxes.
when user selects a subtrate, it calculates the price and update the same in sub_total and calculates the GST.

if the user select more than one, i want access to display message saying, "too many entries. please select only one substrate".

as of now, i wrote the code where it caluclates the price for all selected subtrates. but i want the user not to select more than one substrate.

could anyone help me in this regard?

regards,
Asle

If you use an option group instead of a bunch of check boxes you will soon be flying!

Good Luck

Jim


If you use an option group instead of a bunch of check boxes you will soon be flying!

Good Luck

Jim


thanks Jim... i havnt tried Option group before.
i will check it out.

regards,
Asle


thanks Jim... i havnt tried Option group before.
i will check it out.

regards,
Asle

Hi,

I tried using option group but i want to keep 27 checkboxes.
Option groups does not allow more than 20.

Can this be done programmtically?

i want it such a way that, as user selects a substrate, its price must be added into the TOTAL field. when he deselect, the TOTAL must be ''0''. Also,Access must prompt a message saying "too many entries" when the checkbox count is more than 1.

Can anyone help me in this regard,?

thanks,
Asle


这篇关于只选择一个复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆