C
cmirra
First of all, thanks for reading this. I'd apriticate any help I can
get in the matter, even if its just links to a few websites with good
info, it seems theyre hard to find for ms access.
id like to start off by saying that im running ms access 2003, and im
trying to add some new functions to an existing project. The existing
project is a customer database/form which lets you search for customers
based on various criteria. I have one question in regards to the
original project, is there a function i can use to change the current
tab focus? ive got a search tab, and a customer info tab, id like it so
after a search the page moves over to the customers info automaticly,
rather then just simply filtering it.
This isnt the actual problem though, i'll get to that right now....The
new tab on the form is now a sales form id like to tie with a customer.
We offer engines that are available in different styles and
displacements. depending on what style of engine you pick, not all
displacements are available. im using this code to hide
checkboxes(theyre in option groups)
#################################
Private Sub Etype_AfterUpdate()
If Me.Etype.Value = 4 Then
Check262.Visible = False
Check264.Visible = False
Check266.Visible = False
Check268.Visible = False
Check270.Visible = False
Check274.Visible = False
Else
Check262.Visible = True
Check264.Visible = True
Check266.Visible = True
Check268.Visible = True
Check270.Visible = True
Check274.Visible = True
End If
End Sub
#################################
where Etype is the first option group, and the checkboxes are in the
next one. This code works fine, but by doing something like
#################################
Private Sub Etype_AfterUpdate()
If Me.Etype.Value = 4 Then
Check262.Visible = False
Check264.Visible = False
Check266.Visible = False
Check268.Visible = False
Check270.Visible = False
Check274.Visible = False
Else
Check262.Visible = True
Check264.Visible = True
Check266.Visible = True
Check268.Visible = True
Check270.Visible = True
Check274.Visible = True
End If
If Me.Etype.Value = 3 Then
Check262.Visible = False
Check264.Visible = False
Check266.Visible = False
Check268.Visible = False
Check270.Visible = False
Check274.Visible = False
Else
Check262.Visible = True
Check264.Visible = True
Check266.Visible = True
Check268.Visible = True
Check270.Visible = True
Check274.Visible = True
End If
End Sub
######################
I dont get even the first function to work, let alone the others. I'm
not the greatest coder, but im fairly confident this should be simple,
and i wonder why im struggling so much with it.
The last thing i'd like to have in this program are dollar amounts tied
to the different options (engine1=$5000 , displacement4=$1400,
finish3=$200) and have these added up as theyre checked.
Can anyone give me a hand with this? it seems like it should be simple
stuff, but maybe im just going about it all wrong? Thanks for any help
in advance
get in the matter, even if its just links to a few websites with good
info, it seems theyre hard to find for ms access.
id like to start off by saying that im running ms access 2003, and im
trying to add some new functions to an existing project. The existing
project is a customer database/form which lets you search for customers
based on various criteria. I have one question in regards to the
original project, is there a function i can use to change the current
tab focus? ive got a search tab, and a customer info tab, id like it so
after a search the page moves over to the customers info automaticly,
rather then just simply filtering it.
This isnt the actual problem though, i'll get to that right now....The
new tab on the form is now a sales form id like to tie with a customer.
We offer engines that are available in different styles and
displacements. depending on what style of engine you pick, not all
displacements are available. im using this code to hide
checkboxes(theyre in option groups)
#################################
Private Sub Etype_AfterUpdate()
If Me.Etype.Value = 4 Then
Check262.Visible = False
Check264.Visible = False
Check266.Visible = False
Check268.Visible = False
Check270.Visible = False
Check274.Visible = False
Else
Check262.Visible = True
Check264.Visible = True
Check266.Visible = True
Check268.Visible = True
Check270.Visible = True
Check274.Visible = True
End If
End Sub
#################################
where Etype is the first option group, and the checkboxes are in the
next one. This code works fine, but by doing something like
#################################
Private Sub Etype_AfterUpdate()
If Me.Etype.Value = 4 Then
Check262.Visible = False
Check264.Visible = False
Check266.Visible = False
Check268.Visible = False
Check270.Visible = False
Check274.Visible = False
Else
Check262.Visible = True
Check264.Visible = True
Check266.Visible = True
Check268.Visible = True
Check270.Visible = True
Check274.Visible = True
End If
If Me.Etype.Value = 3 Then
Check262.Visible = False
Check264.Visible = False
Check266.Visible = False
Check268.Visible = False
Check270.Visible = False
Check274.Visible = False
Else
Check262.Visible = True
Check264.Visible = True
Check266.Visible = True
Check268.Visible = True
Check270.Visible = True
Check274.Visible = True
End If
End Sub
######################
I dont get even the first function to work, let alone the others. I'm
not the greatest coder, but im fairly confident this should be simple,
and i wonder why im struggling so much with it.
The last thing i'd like to have in this program are dollar amounts tied
to the different options (engine1=$5000 , displacement4=$1400,
finish3=$200) and have these added up as theyre checked.
Can anyone give me a hand with this? it seems like it should be simple
stuff, but maybe im just going about it all wrong? Thanks for any help
in advance