Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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 March 2nd, 2006, 04:52 PM
Authorized User
 
Join Date: Mar 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Everyone, I have to appologize If I have misrepresented facts. My initial note says everything on the RIGHT side of the = sign works, in other words, I have a value returned. My problem is Between the WHERE statement and the LEFT side of the = sign.

Looking at my original note I have identified below the problem areas.

.Open "SELECT Uparm, Aparm FROM WIST WHERE (Fields('Uparm').Value
= " & Me.Uparm & ")"


.Open SELECT Uparm, Aparm FROM WIST WHERE Problem Area = No Problem area

While I have not attempted the last suggestion as of yet, I wanted to say thanks now for your support.

StepD

 
Old March 3rd, 2006, 04:53 PM
Authorized User
 
Join Date: Mar 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Guys, to help someone else in the future, the answer is...

.Open "SELECT Uprm, Aprm FROM Wist WHERE Uprm = '" & Me.Uprm & "'"

Thanks for your willingness to help. It was the right side afterall.

StepD






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Syntax in VBA? Bill_L Excel VBA 0 September 11th, 2008 08:47 AM
Vba Consolidate Syntax grouth Excel VBA 3 September 29th, 2006 07:37 PM
Using VBA to define query fields??? mmcdonal Access VBA 0 November 24th, 2004 03:45 PM
Syntax error in query. Incomplete query clause. dispickle ADO.NET 3 April 16th, 2004 01:04 PM
help with VBA syntax jacqui Excel VBA 0 January 12th, 2004 02:08 PM





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