473,320 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Populate a field based on a 'clicked' checkbox

Hi all,

I've been trying to figure out how to populate a field by whether or not the user checked a checkbox (but to no avail).

For background, I have a cluster of checkboxes that are 'Quick Links' and the user can select/click as many as they want (to signify which links they have used). However, in the table, I'd like another field (for each link) to populate with the URL of the quick link to be printed out in reports, etc.

I've tried doing this by using the Expression Builder, but that isn't working. I'm thinking I'd need to do an Event Procdure for this, but I'm really new to Access and I am shaky with VB.

If it helps, one of my checkboxes is named 'Stat', and the field I'd like the URL to populate in is 'Stat_Link'. For all intents and purposes, the URL I'd like to 'show up' in that field is "http://www.thescripts.com"

Thank you so much!
Oct 10 '07 #1
4 4160
nico5038
3,080 Expert 2GB
Hmm, having a hard time figuring out why you want this checkbox / autofill feature.
Looks to me you have all links somewhere.
When you have a standard set of links and want to allow users to imply or the used the link or not, then I would create a "master table" tblLinks and for each user a tblUserLinks.
When the user opens the user form I would copy all tblLinks rows for this user into the tblUserLinks. By placing a linked subform to the tblUserlinks the links for this user will display and when you have a YesNo field, then the user can mark the used links in the subform.

Idea ?

Nic;o)
Oct 11 '07 #2
Hmm, having a hard time figuring out why you want this checkbox / autofill feature.
Looks to me you have all links somewhere.
When you have a standard set of links and want to allow users to imply or the used the link or not, then I would create a "master table" tblLinks and for each user a tblUserLinks.
When the user opens the user form I would copy all tblLinks rows for this user into the tblUserLinks. By placing a linked subform to the tblUserlinks the links for this user will display and when you have a YesNo field, then the user can mark the used links in the subform.

Idea ?

Nic;o)
Hi Nic,

Thanks for your response. One reason I'd like to have this autofill function 'in the background' is there's so much information on the page already, I feel a sub-form would clutter things up. I was just hoping there was some way to include a link's URL address if a user clicked/selected that link's checkbox.

Best,

AccessNewbie
Oct 16 '07 #3
nico5038
3,080 Expert 2GB
Then I would probably add a tab control on the form, allowing you to group fileds logically and allow the user max space when selecting the links.

Perhaps my sample with moving entries from one listbox to another is a way for you to let the user select the links:
http://www.geocities.com/nico5038/xS...p-Down2000.zip
Check the "LeftRight" form.

Nic;o)
Oct 16 '07 #4
Then I would probably add a tab control on the form, allowing you to group fileds logically and allow the user max space when selecting the links.

Perhaps my sample with moving entries from one listbox to another is a way for you to let the user select the links:
http://www.geocities.com/nico5038/xS...p-Down2000.zip
Check the "LeftRight" form.

Nic;o)
Thanks, that should help!
Oct 18 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jim | last post by:
I have a 2 checkboxes and a hidden field..what I want to happen is that you can only click on 1 of these checkboxes at a time and when you check a checkbox it will assign the hidden field...
0
by: Just D | last post by:
Hi All, Does anybody know how to write the following code? I have a database table with a few columns including: ID , "Task" , ForceRun . I need to show the DataGrid on the ASPX page with...
1
by: WebArtist8248 | last post by:
Hi all, Trying to figure out how to use a checkbox in a form and have JavaScript populate another field. For instance, I have 2 fields: DaytimePhone and EveningPhone and I have a checkbox that...
8
by: Jeremy | last post by:
If we have a table with say 3 rows in it and one of the columns contains a checkbox such as <table> <tr> <td><input type="checkbox" name="ch_fld"></td> </tr> <tr> <td><input type="checkbox"...
4
by: andrewbda | last post by:
I have tickbox on a form, and I would like to use a date field as the control source. i.e. I would like to have it display as ticked when a date exists in the field, and vice versa. Also,...
1
by: jeffro | last post by:
I have a database used for recording survey data. In the database, I have a form that displays a survey participant and a subform that is filled in by selecting a question from a looklist and...
4
by: whamo | last post by:
I have the need to populate a field based on the selection in a combo box. Starting out simple. (2) tables tbl_OSE_Info and tbl_Input; tbl_OSE_Info has three fields: Key, OSE_Name and OSE_Wt...
1
by: cluless | last post by:
Hey everybody, I have a database with one major form that has a few subforms and a listbox, and on the form there are buttons that link to other forms as well. Once the list box is clicked on, the...
1
by: ramel | last post by:
Hi all, I have a problem related to javascript , ajax and jsp. Please see this url http://xil.co.in/print_screen_2.JPG. I am working on this form. There are some buttons (like submit ,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.