Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 September 19th, 2006, 04:04 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Update Code Not Working

I put this on a command button and whenever i click it it says "Object Required". Any help would be great.

Dim myDb As Database
Dim strSql As String

Set myDb = CurrentDb

strSql = "UPDATE [Progress - Weld/Fit/Visual] SET [Progress - Weld/Fit/Visual].[Long Seam] = " & _
  Queries![Progress_Fit]![Long Seam].Value & " WHERE ((([Progress - Weld/Fit/Visual].Type) = 'Fit'))"

DoCmd.SetWarnings False
myDb.Execute strSql
DoCmd.SetWarnings True

Set myDb = Nothing




Similar Threads
Thread Thread Starter Forum Replies Last Post
DetailsView update not working. Andrew.Berry ASP.NET 2.0 Professional 6 April 22nd, 2008 11:23 AM
Update Query Not Working Odifius BOOK: Beginning Access VBA 0 September 20th, 2006 11:33 AM
Update not working... comicghozt ASP.NET 1.0 and 1.1 Basics 3 June 30th, 2006 03:28 AM
UPDATE query is not working Sujit Joshi Beginning PHP 1 July 6th, 2005 04:07 PM
DataGrids Update Project not working John K. King BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 July 7th, 2003 04:29 PM





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