User Profile

Collapse

Profile Sidebar

Collapse
switchof
switchof
Last Activity: Dec 20 '11, 01:30 PM
Joined: Aug 25 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Bumping it cause I still didn't find the solution so would need help
    See more | Go to post

    Leave a comment:


  • switchof
    started a topic How to solve error 3211 in Access 2000?

    How to solve error 3211 in Access 2000?

    I received the error 3211: database engine could not lock table TF_Classificati on as it's been used by another person or process on the line bolded in the below code: tblWM.Fields.Ap pend fldWM

    I already tried 2 ways:
    1. to close the recordset and set the object to nothing
    2. close the table using the command: DoCmd.Close acTable, "TF_Classificat ion", acSaveYes
    but none works, so any idea?

    ...
    See more | Go to post
    Last edited by Stewart Ross; Nov 25 '11, 07:21 PM. Reason: code tags added

  • What did you ask NeoPa? I thought I've responded to what you posted.
    Actually this question is related cos say in my previous question, lst2 is on subform and lst1 is on the parent form.

    So besides lst1, there's a combo box on parent form.
    And besides lst2, there are text boxes on subform to display the details of a bank account based on what is selected on lst1.
    See more | Go to post

    Leave a comment:


  • Now I have a problem to synchronise parent and sub forms.

    Say in parent form I have a combo box that when a value: a person is selected, a list box on the same form will be populated with the bank names where this person holds account and address of the branch.
    I have to use query to populate the list box also cos the bank name and address are held in 2 different tables.
    A person can be connected to more than 1 banks and...
    See more | Go to post

    Leave a comment:


  • switchof
    started a topic How to Synchronise Parent and Sub Forms

    How to Synchronise Parent and Sub Forms

    ** Edit **
    This post was posted by mistake into another thread (To populate listbox in subform from value selected in parent form), which may contain details relevant to this question.
    **

    Now I have a problem to synchronise parent and sub forms.

    Say in parent form I have a combo box that when a value: a person is selected, a list box on the same form will be populated with the bank names where this person holds...
    See more | Go to post
    Last edited by NeoPa; Aug 29 '11, 04:51 PM. Reason: Moved to new thread from hijack post and added a linkback

  • I found the answer!

    So I populated the rowsource of lst2 on OnClick event of lst1.
    And apparently what I should write is:
    Code:
    Forms![ParentFormName]!PageA1.Controls!SubFormName.Controls!lst2.RowSource = "Query1"
    Then I put:
    Code:
    [ParentFormName]!PageA1.Controls!SubFormName.Controls!lst2.Requery
    so that when another row is selected on lst1, lst2 would be populated with the children of the selected...
    See more | Go to post
    Last edited by NeoPa; Aug 26 '11, 11:58 PM. Reason: Added mandatory CODE tags

    Leave a comment:


  • NeoPa, unfortunately it didn't work :(
    I used ! instead of . and still didn't work.
    See more | Go to post

    Leave a comment:


  • Say I have the parent form: FormA that has a listbox: lst1 and it has a few rows say displaying people's names.
    When a row in this list is selected, it should populate a listbox: lst2 on the subform: FormB, with relevant data, say the selected person's children.
    I put the subform on a page of FormA actually, say PageA1.

    I suppose I should populate lst2.rowsource with query that selects the children where parent = lst1.value....
    See more | Go to post
    Last edited by NeoPa; Aug 25 '11, 09:48 PM. Reason: Added mandatory CODE tags

    Leave a comment:


  • To populate listbox in subform from value selected in parent form

    How can I populate the list box (list 2) in subform from a value selected in a list box (list 1) in parent form?

    I can put in the row source of list 2 a query to match a table's field to the list 1.value, but I don't know how to pass this value from parent form to subform and where I should populate the row source of list 2.

    Thanks for any tips.
    See more | Go to post
No activity results to display
Show More
Working...