Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 6th, 2007, 11:28 AM
Authorized User
 
Join Date: Apr 2004
Location: LEOMINSTER, Herefordshire, United Kingdom.
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?
Reply With Quote
  #2 (permalink)  
Old February 6th, 2007, 01:20 PM
Authorized User
 
Join Date: Apr 2004
Location: LEOMINSTER, Herefordshire, United Kingdom.
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.