Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Access 2003 VBA Programmer's Reference
This is the forum to discuss the Wrox book Access 2003 VBA Programmer's Reference by Patricia Cardoza, Teresa Hennig, Graham Seach, Armen Stein; ISBN: 9780764559037
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Access 2003 VBA Programmer's Reference 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 17th, 2009, 03:47 PM
Registered User
 
Join Date: Jun 2009
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Question Docmd.RunSQL

Private Sub Text58_Click()
Dim Naam As String
Dim strSQL As String
strSQL = "SELECT * FROM tblBank087 WHERE Naam = """ & Me.Text58 & """"
'SELECT * FROM tblBank087 WHERE [Naam ]= "Nobre";
Naam = Me.Text58
DoCmd.RunSQL strSQL, no

'Select Omschrijving Where Omschrijving Like
End Sub

I want to select a name from a dropdownlist but it doesnot work Iam new in Sql and VBA
waht the problem?




Similar Threads
Thread Thread Starter Forum Replies Last Post
Using DoCmd.RunSQL to return values jscully Access VBA 10 August 21st, 2017 12:58 PM
Docmd.runsql anne.burrows VB How-To 2 October 25th, 2006 08:21 AM
DoCmd.RunSQL dates and time TarkaDahl Access VBA 3 May 11th, 2006 11:19 AM
docmd.runsql "select RodMead Access VBA 2 July 31st, 2004 02:55 PM
Help with DoCmd.RunSQL command ricmar Access VBA 3 July 21st, 2004 03:32 PM





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