Wrox Programmer Forums
|
BOOK: Beginning Access VBA
This is the forum to discuss the Wrox book Beginning Access 2002 VBA by Robert Smith, Dave Sussman, Ian Blackburn, John Colby, Mark Horner, Martin Reid, Paul Turley, Helmut Watson; ISBN: 9780764544026
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Access VBA 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 June 29th, 2004, 12:44 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 8, click event handler

on page 259 in Beginning Access VBA 2000 I can't get this line to execute:

CurrentDb.QueryDefs("qryExample").SQL = strSQL

I get this error message:
Runtime error 3131, Syntax error in FROM clause

the code is producing the SQL string but not passing it to the Query

does anyone have any suggestions? thanks!

 
Old June 30th, 2004, 03:02 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found the error, missed the last space at:

strFROM = "tblSales s "





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Image Handler Click Event daniel.mihalcea C# 2008 aka C# 3.0 12 March 12th, 2010 06:29 AM
HOW TO ADD AN EVENT HANDLER pallone .NET Framework 2.0 10 September 16th, 2008 12:28 PM
Chapter 19, p.970, Can't Add Event Handler Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 0 January 6th, 2008 05:13 PM
Event handler samir_katore Pro VB 6 6 June 8th, 2006 01:22 PM
PreDefined Event Handler mark C# 1 June 7th, 2003 04:47 AM





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