By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,506 Members | 2,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,506 IT Pros & Developers. It's quick & easy.

Populate a field based on a 'clicked' checkbox

P: 3
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
Share this Question
Share on Google+
4 Replies


nico5038
Expert 2.5K+
P: 3,072
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

P: 3
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
Expert 2.5K+
P: 3,072
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

P: 3
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

Post your reply

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