Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 December 28th, 2007, 10:16 AM
Authorized User
 
Join Date: Dec 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sSQL = "SELECT DISTINCT [Serial No] FROM tblYourTable WHERE [City] = '" & sString & "' AND [Print] = 0"

When i run this in query design the serial no is returning blank.Thats why i asked you whether the code i inserted is wrong.But the code above is what has been given by you.
 
Old December 28th, 2007, 11:11 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

try replacing 0 with "No" as in your other SQL strings.

mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old December 28th, 2007, 11:25 AM
Authorized User
 
Join Date: Dec 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried it,same result only...
 
Old December 28th, 2007, 11:27 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Please send me a copy of the database and I will work on it.

mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old December 28th, 2007, 11:39 AM
Authorized User
 
Join Date: Dec 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How do i send the database?
 
Old December 28th, 2007, 11:49 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Click on my name, and then click to email user...

mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old December 29th, 2007, 02:52 AM
Authorized User
 
Join Date: Dec 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If IsNull(Me.CityList.Value) Or Me.CityList.Value = "" Then
    [Forms]![frmYourForm].[SerialNoList].RowSource = ""
    Exit Sub
    Else
    sString = Me.CityList.Value
End If


The variable sString does not have any value when I select it in the city listbox as i inserted the command
MSGBOX sString
before the Exit Sub.

Hence, the query is also returning no records.

Also, am unable to attach the database in the email-to option after clicking your name.
 
Old December 31st, 2007, 06:24 AM
Authorized User
 
Join Date: Dec 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you help please...
 
Old January 2nd, 2008, 08:39 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Email me and send me your email address, and I will reply to it, and you will get my email address.

mmcdonal

Look it up at: http://wrox.books24x7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Listbox problem when insert or update hcanales ASP.NET 1.x and 2.0 Application Design 1 September 21st, 2006 02:53 PM
How to Update a Listbox on Different Form boxwalah C# 2 February 24th, 2006 12:22 PM
loop through listbox and update record stoneman Access 1 August 5th, 2005 03:43 AM
How to pass parameters from a multiselect listbox Jeff1218 Classic ASP Databases 3 February 14th, 2005 03:39 PM
listBox +Update problem dvarrin C# 0 November 26th, 2003 05:25 PM





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