Results 1 to 2 of 2
  1. #1
    ninjamustang is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    11

    web access 2010 database - main nav, form droplist, requery subform need help

    hello,



    I have a main form, in that i have a subform (frmAssignTo) with a dropdown list, when selected, it should filter and requery a subform (frmAssignToSubform) based on what i selected.

    I followed a tempvars guide from http://dmoffat.wordpress.com/2011/10...ces-web-forms/
    but still couldn't figure it out after hours of reading about tempvars.

    I'm attaching my file. Please point out what I did wrong. thanks so much.Click image for larger version. 

Name:	form.JPG 
Views:	5 
Size:	89.7 KB 
ID:	15775
    Attached Files Attached Files
    Last edited by ninjamustang; 03-16-2014 at 07:14 PM. Reason: Attached image

  2. #2
    ninjamustang is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    11
    I figured it out after reading the entire features of web access db 2010 and understood what each function does.

    So here is the solution
    Main Form
    droplist, say name is cboComboSelect

    After update, SeTempVar, name = txtComobo, exp = [cboComboSelect], name = MySubForm

    Subform, name it MySubForm
    This is the detail of your records. So make a query, then go to the field (eg: Company), in that Company, in the Criteria, put in [SeTempVars]![cboComboSelect]

    Now if you just open that query, everything is emptied which is correct. Now open the Main Form, select value and it will filter correctly.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Requery subform from main form
    By nswhit in forum Forms
    Replies: 7
    Last Post: 05-13-2013, 02:22 PM
  2. Requery Main Form, Keep Focus on Subform
    By burrina in forum Forms
    Replies: 8
    Last Post: 11-21-2012, 03:50 AM
  3. Requery subform after update of main form
    By gemadan96 in forum Forms
    Replies: 3
    Last Post: 10-17-2012, 02:33 PM
  4. Replies: 3
    Last Post: 04-17-2012, 10:28 AM
  5. Replies: 3
    Last Post: 10-10-2011, 06:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums