Wrox Programmer Forums
|
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 February 6th, 2007, 11:28 AM
Authorized User
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default No additions using VBA and SQL

I've set up a simple form based on a two table join, using VBA and SQL. Eg:

Me.Form.RecordSource = strSQL

This form doesn't allow me to edit or add records and I can't see why. I've set up the same form using the form Wizard and this one does allow edit and add. The only difference between the properties of the two is the Record Source which is a stored Query on the Wizard version, and blank for my original. The content of my strSQL is exactly the same as the SQL in the Query.

What am I missing?
 
Old February 6th, 2007, 01:20 PM
Authorized User
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Me again. Sorry to have wasted your time, my SQL wasn't exactly the same as the Query - now it works.





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Syntax in VBA? Bill_L Excel VBA 0 September 11th, 2008 08:47 AM
Showing 5 latest additions, problem with sorting Konfu XSLT 0 March 11th, 2006 10:21 AM
textboxes and additions toiletgraffiti C# 4 January 23rd, 2006 11:50 AM
Access 2000 "Open ODBC SQL Table for Additions" cjdphlx Access VBA 3 July 18th, 2005 02:05 PM
Excel VBA to SQL & back to VBA edesousa Excel VBA 1 June 1st, 2004 02:39 AM





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