Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 7th, 2004, 03:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default Subform generating error

I have an Access ADP (connecting to MS SQL2000) form that has a tab on it and on one of the tabs is a sub form.

The subform open OK on its own, but when I open the main form I get:

The column prefix 'T_PO_Detail' does not match with a table name or alias name used in the query"

I have looked everyplace that I think T_PO_Detail would be needed and can't find any that would relate to the sub form.
__________________
Mitch
 
Old April 7th, 2004, 08:37 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

On your subform properties check and make sure the source of t_po_detail is correct. If it is based on a query check the query source is correct. A name record source may have occurred and was not changed in the query. If the main form property is based on a query make sure the tables or views, (all source) are spell or referenced correctly.

 
Old April 12th, 2004, 09:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did some testing and found that if I made the subform point to the table, it did not create the error, but if I set it to an sql statement then I get the error. The sql statement works on its own, so that is correct, but ot when I put it in the subfrom it cuses the error ONLY if I specify the "link child and master fields"
 
Old April 12th, 2004, 09:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I replaced the sql string with an actual view, then it worked without errors.

I don't know if this is a "binding" issue or what, but that worked.





Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Web Query Generating Error 1004 bob135 Excel VBA 1 May 28th, 2009 07:31 PM
Error 429 while generating excel report ganesan.k Access VBA 0 April 16th, 2007 02:29 AM
Error generating the jasperReport krishnatlk J2EE 0 April 27th, 2005 05:44 AM
error in snapshot generating code (asp) vinodkalpaka Classic ASP Components 2 July 20th, 2004 01:14 AM
error in snapshot generating code (asp) vinodkalpaka Pro VB 6 0 July 19th, 2004 01:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.