|
-
Feb 9th, 2012, 04:24 PM
#1
Thread Starter
Lively Member
[RESOLVED] Creating Option buttons based off Table Values
Hey everyone,
I was wondering if it's possible to write VBA code to create option buttons based off of table values. For example.
My table contains 1 column and it is a parent table.
Activity
--------
Run
Walk
Jog
Sprint
Would it be possible to create option buttons automatically when I open a form based off of the values under Activity???
Thank you!
-
Feb 10th, 2012, 05:00 AM
#2
Re: Creating Option buttons based off Table Values
Would it be possible to create option buttons automatically when I open a form based off of the values under Activity???
yes quite possible, but you would need to give thought as to how you will position them
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Feb 24th, 2012, 03:37 PM
#3
Thread Starter
Lively Member
Re: Creating Option buttons based off Table Values
Westconn,
Sorry for the late reply.
I guess positioning them in the correct location would be the second issues I'd come across. But how would I create an option button with code? I am familiar with looping through a table to name my option button just not creating one.
Thank you.
-
Feb 24th, 2012, 03:45 PM
#4
Re: Creating Option buttons based off Table Values
vb Code:
shtobject.Shapes.AddOLEObject ' requred parameters for type and position
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Feb 24th, 2012, 04:07 PM
#5
Thread Starter
Lively Member
Re: Creating Option buttons based off Table Values
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|