Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using nw table field in VB

Status
Not open for further replies.

oldtimer99

Programmer
May 8, 2012
13
US
VB program (access) use to schedule students for career day. Added check box for 6 grade (already has 1-5). VB does not allow use of it. Not in object list. How do I add it to list so it can be used in pgm. I am network engineer and lost
 
Do you use some kind of code?
Do you use 6 check boxes or one group of check boxes?
 
As was mentioned in another thread, your table structure isn't normalized if you are adding columns. It's your program so you will have to live with the maintenance consequences.

Are you really using VB? If so as JoseMarques suggests, you need to share the code and possibly the table structure and connection information.


Duane
Hook'D on Access
MS Access MVP
 

BTW, "VB program (access)" is NOT a VB, it is a VBA Visual Basic for Apllication. There are enough differences between VB and VBA, so you should state which language you use.

Have fun.

---- Andy
 
OK,
Thank you for the help. There are three tables grade,presenter,presenter-shedule
each have three fields grade1access,grade2access grade3access,grade4access,grade5access.

I use 6 check boxes

I have add grade6access to each. I did not desgn this db and are just trying to help school (for free). They want to add the six grade to the program.The following code will not compile;

Me.Grade5Share.Enabled = True
get compile error 'Methed or data member not found'
Can fid propeties for other grades' access, but not for this.
 
oldtimer99,
I appreciate your offer to help the school. Thanks.

However, you mention "three fields" but provide five field names. Also, you have never identified exactly if this is strictly MS Access or if it is Visual Basic.

Do you have a control named "Grade5Share"? This is a control, not a field. Did you get the error on "Grade5Share" or possibly "Grade6Share"?

Why "Share" and not "access"?

Duane
Hook'D on Access
MS Access MVP
 
However, you mention "three fields" but provide five field names. Also, you have never identified exactly if this is strictly MS Access or if it is Visual Basic.

Do you have a control named "Grade5Share"? This is a control, not a field. Did you get the error on "Grade5Share" or possibly "Grade6Share"?

Why "Share" and not "access"?

It is 3 tables
5 fields each

I do think it my be a control, not sure how to find out.

Got Error on Grade6Share
Do not know why this is "Share" and not "Access" Did not create this pgm/DB and those who did are not around.
 
I am using only MS access. Yes the forms are MS Access Do not know how to find code that sets the Enabled properties
 
How did you find
oldtimer99 said:
The following code will not compile
Me.Grade5Share.Enabled = True
While in design view of a form, open the Properties dialog. Then click on the little square to the left and top of the rulers. This should display the form properties. You can then look at the event properties for [Event Procedure] with a [...] button to view the code.

Duane
Hook'D on Access
MS Access MVP
 
I have done so. Added Me.Grade6Share = True
and all other references to Grade6Share just like it was for the other grades.

Did so in two places like other grades
Still get the same compile error
 

Just a guess here, but it may be a bound control

Have fun.

---- Andy
 


Quote (oldtimer99)
Added Me.Grade6Share = True
Shouldn't this be

CODE --> vba
Added Me.Grade6Share.Enabled = True




Yes it is.

Do not see Me.Grade6Share=Enable in the form. I looked in properties and see only Grae6Shre under ConrolSource. Am I looking in wreong place/
 
I looked in properties and see only Grae6Share under ConrolSource. Am I looking in wrong place?

Sorry for bad typing
 
Do not see Me.Grade6Share=Enable in the form. No I looked in properties and see only Grae6Share under ConrolSource. Am I looking in wrong place?

Sorry for bad typing

 
Thank You very much! Now I know what I need to do. I will be able to buy a book or check out the website.

Thanks Again

gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top