Results 1 to 3 of 3
  1. #1
    Phred is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2009
    Posts
    246

    Form Wizard not showing Select Query Fields to attach to form.

    Access 2007 and SQL Server 2008 R2 Back End, in development.

    I have created two select queries. Both queries perform correctly and call up the correct data.

    Query 1: QRY_AODOCSUM

    Code:
    SELECT dbo_PropertyYearDetail.PropertyID, dbo_PropertyYearDetail.PropYearDetID, Left([taxyear],4) AS TaxYear, dbo_PropertyYearDetail.AOfileDT, dbo_PropertyYearDetail.AOComplaintNO, dbo_PropertyYearDetail.AOcertifiedAV, dbo_PropertyYearDetail.AOProposedAV
    FROM dbo_PropertyYearDetail INNER JOIN dbo_Property ON dbo_PropertyYearDetail.PropertyID=dbo_Property.PropertyID
    WHERE (((dbo_PropertyYearDetail.PropertyID)=[Forms]![property]![PropertyID]))
    ORDER BY Left([taxyear],4);
    Query 2: QRY_BORDOCSUM

    Code:
    SELECT dbo_Property.PropertyID, dbo_PropertyYearDetail.PropertyID, dbo_PropertyYearDetail.PropYearDetID, Left([TaxYear],4) AS TaxYear, dbo_PropertyYearDetail.BORfinalAV
    FROM dbo_PropertyYearDetail INNER JOIN dbo_Property ON dbo_PropertyYearDetail.PropertyID = dbo_Property.PropertyID
    WHERE (((dbo_Property.PropertyID)=[Forms]![Property]![PropertyID]))
    ORDER BY Left([TaxYear],4);
    Query functions and pulls up the proper data. QRY_AODOCSUM:

    Click image for larger version. 

Name:	AODOCSUM.JPG 
Views:	11 
Size:	63.9 KB 
ID:	19962

    Query functions and pulls up the proper data. QRY_BORDOCSUM:

    Click image for larger version. 

Name:	QRY_BORDOCSUM.JPG 
Views:	11 
Size:	52.4 KB 
ID:	19963


    These two queries will display on the Main Property Form as sub_Forms. Both queries pick up the PropertyID from the Property Form and pull up the data in the query. The sub forms display their data only by query. There is no direct connection between forms such as Property Parent Form ID to Property Sub Form AODocSum sub form Property ID. (Perhaps I need one??)



    Here is the problem. When I go to the Form Wizard to create the form and select the Query to attach to the form, no fields show:

    Form wizard to build on QRY_AODOCSUM

    Click image for larger version. 

Name:	AO_FormWizard_NoFields.JPG 
Views:	11 
Size:	31.8 KB 
ID:	19964

    Form wizard to build on QRY_BORDOCSUM

    Click image for larger version. 

Name:	BOR_FormWizard_NoFields.JPG 
Views:	11 
Size:	31.2 KB 
ID:	19965

    I have not encountered this before. Does anyone have any ideas?

    Thanks Phred

  2. #2
    Phred is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2009
    Posts
    246
    I've tried to attach the queries a bunch of different ways and they don't work. I think there is something fundamentally wrong with my queries.

  3. #3
    Phred is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2009
    Posts
    246
    I found I had a circular reference in a field in the query. The formula in the query was Left([TaxYear],4) to return the year portion of the Date. At the same time I was trying to Sort Descending by this field.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-29-2014, 01:04 PM
  2. Form Field showing all table fields
    By DMJ in forum Forms
    Replies: 7
    Last Post: 03-25-2014, 03:57 PM
  3. Select all query fields for main form?
    By tagteam in forum Access
    Replies: 13
    Last Post: 09-15-2013, 04:35 PM
  4. Create form wizard Separate groups of fields
    By newtoAccess in forum Forms
    Replies: 3
    Last Post: 12-10-2010, 08:32 AM
  5. fields not showing up in Form view
    By eroy in forum Forms
    Replies: 3
    Last Post: 08-28-2010, 05:44 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