User Profile

Collapse

Profile Sidebar

Collapse
csolomon
csolomon
Last Activity: Mar 31 '09, 08:15 PM
Joined: Mar 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • csolomon
    replied to Control Tab Possibllities
    Hi OldBirdman,

    Again I appreciate your assistance. Back to work!

    1) CHECK
    2)CHECK
    Code:
    3) Next post, I need to know the name of your new subform
    The name is SF_Test_TestMix Sample
    3) a. Here is what I have:

    Code:
    Private Sub tabCtl1_Change()
    Dim strSQL As String
    Dim iTab As Integer
    MsgBox "Tab chosen is " & TabCtl1.Pages(TabCtl1).Name
    iTab = Mid(TabCtl1.Pages(TabCtl1).Name,
    ...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    OldBirdMan,

    It's about that time! I really appreciate you taking the time out (one step at a time :)) to explain things to me and ensure that I got it right. Hopefully we can finish this tomorrow as my work day is over.

    Thank you again. I will respond to you on tomorrow.
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    Yes it does! And using one form!!!

    I noticed that the first time I go into design view, I see all my calculations, but when I change tabs, they say #NAME?

    Those are the only issues left. The footer's calculations only are used for the cements values. I have a lot of unbound text boxes, representing different values that are used in calculations....
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    I was able to do everything listed, with no issues. I only tried to edit a record, not add one...that works....
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    You are right BirdMan, I had the subform on the tab control name as opposed to the new subform name.

    Now, when I select a tab, the subform changes.

    Code:
    Private Sub tabCtl1_Change()
    Dim strSQL As String
    Dim iTab As Integer
    MsgBox "Tab chosen is " & TabCtl1.Pages(TabCtl1).Name
    iTab = Mid(TabCtl1.Pages(TabCtl1).Name, 4, 1)
    strSQL = "SELECT * FROM Material WHERE matTypeID="
    ...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    After the program ran, I put a breakpoint on line 3 of the tabCtl1_change subroutine. Here's what happened in the immediate window:
    ?iTab: 2
    ?strSQL:
    Code:
    SELECT * FROM Material WHERE matTypeID=2 ORDER BY material;
    ?Me!SF_Test_Mix Sample.Form.Rec ordSource:
    Code:
    SELECT MixSample.DM_Mix, MixSample.DM_MaterialNo, MixSample.matTypeID, MixSample.materialID, MixSample.matBatchWeight, MatType.matType, Material.material, Material.materialGrav,
    ...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    # Tab Control Name: tabctl1
    # Tab page 1 Name:mat1
    # Tab page 2 Name:mat2
    # Tab page 3 Name:mat3
    # Tab page 4 Name:mat4
    # Tab page 5 Name:mat5
    # Tab page 1 Caption:Cement
    # Tab page 2 Caption: Fine
    # Tab page 3 Caption: Course
    # Tab page 4 Caption: Pigments
    # Tab page 5 Caption: Chemicals
    # Main Form Name:F_Test2_Mi xDesign
    # SubForm Name:SF_Test_Mi xSample
    ...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    Code:
    I'm assuming that your tab page names now contain the matTypeID in them.  The above code assumes in position 4, i.e. "mat3"
    Yes I have relabeled them. Should this include a line for the other 4 tabs?

    Additionally, what you said works, however in my original record source, I had some calculations being performed. those now have errors. How can I include those calculations in the str SQL?...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    OK...one step at a time.

    I have created the form as you asked, unfiltered and on the parent form, with out the tab. I am using a continuous form, but I may have to change it to datasheet view since the job wants it to look like an excel sheet.
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    OK. That much is working.
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    I apologize BirdMan, I meant each tab represents a matType, not each one says MatTypeID. I was referring to the property window...I think I have it set up correctly. When the msgbox comes up, it shows the Other name in the property window, which is the caption on the tab.

    Code:
    Message boxes become annoying.  Quickly.  Although they never quit being annoying, they become ignored.  The click-a-tab / click-a-OK becomes automatic.  But it
    ...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    I am on the parent form trying to refer to a control in the footer of the subform, in the expression builder. I didn't think the Me operator was used there.

    This:
    Code:
    =[SF_CementType].[Form]![txtWaterBW]
    Does not work in this form, although in the initial form it did....
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    The caption for each page is not null. The names I provided are located in the property name section...the Caption says the matType.

    I like that idea using the message box, bc it will let my users know (again) what they are putting in. Additionally, for the matTypeID, I just made the default value, the number representing the matTYpeID in each individual form.

    As far as the footer in the form, if I want to refer to...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    Code:
    I have cleared out all code telling my tabs to appear visible or invisible, yet when I open my form, it still only shows the one cement tab.
    fixed this piece!


    It does have 1 control, a tab control. it has 5 tabs. On each tab is a subform

    I named my tabs: pgeOne, pgeTwo, pgeThree, pgeFour, pgeFive...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    You are right OldBirdman, it is but I am sure we will arrive at a viable solution.

    Since matTypeID is a field in the table, wouldnt' I need to somehow connect the tab with what the matTypeID it represents??? If not, then the user will have to select the material type so the record in the table will be filled in. I think that would be redundant since the tabs suggest the matType, even though it's just a label?...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    Code:
    I am still not sure category is in the table structure. Are you using "material type" and "category of material type" to mean the same thing?
    Yes I was...it's actually called matType, for material Type

    I tried to use that Change routine you sent, but unfortunately, my matTypeID combo box is not allowing me to change it.
    You are correct so far....
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    Chip, I misunderstood this part:
    Code:
    Why did you change your record source to include the combo value? The record source for each subform should not change
    So I changed it from what it was (each subform source had the appropriate matTypeid it represented).

    Here is what is in the after event of the combo box:

    Code:
    Private Sub matTypeID_AfterUpdate()
    Select Case matTypeID
       Case 1
          Me.materialID.Requery
    ...
    See more | Go to post
    Last edited by csolomon; Mar 26 '09, 03:20 PM. Reason: Also, now, my matTypeId will not allow me to make changes to the selection in the box.

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    I am absolutely sure this isn't difficult, I was am just having issues.
    OK. I chose the method of using a subform on each tab.

    My control sources for each subform are the same. It does not include the combo value
    The combox controlling the tabs is bound to matTypeID...
    See more | Go to post
    Last edited by csolomon; Mar 26 '09, 02:56 PM. Reason: It still isn't functioning like it should. I am going to try to stack the forms.

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    Code:
    You are trying to code a problem that has not been clearly defined, and the rules seem to change with each post.
    How do the rules change w/ each post? IMO, Chip has been giving me info about what works and what doesn't, in addition to assisting me with figuring out what is wrong...althoug h we haven't got there yet.

    Code:
    Note: The code in Post #8 will hide ALL TABS after 2 calls to the subroutine.
    This explains why...
    See more | Go to post

    Leave a comment:


  • csolomon
    replied to Control Tab Possibllities
    I don't get it Chip.

    I put an unbound combo box, combo10, on the form with the MatTypeIDs. In the after event update I have this:

    Code:
    Select Case matTypeID
    
       Case Is = 1
    TabCtl1.Pages(1).Visible = False
    TabCtl1.Pages(2).Visible = False
    TabCtl1.Pages(3).Visible = False
    TabCtl1.Pages(4).Visible = False
    
       Case Is = 2
    TabCtl1.Pages(0).Visible = False
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...