LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 2
Default If Statement in Database Query

I have read some similar posts but couldnt find the answer to help me with the below...

I am trying to setup a query so if cells are filled in with a project title then only this data comes through the database query, if it is empty - everything comes through.

So i did:

Criteria field = Project
Value = Is Not Null
or = [Project Title]

I know this isnt the right thing to do but i cant get it to work using other attempts...

So in the spreadsheet, if A1 = blank then all projects otherwise only what A1 equals. I can do the pointing to the cell easily, its just the IF statement in the Database query i am struggling with.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
database query not showing foxpro database How I import data mangat New Users to Excel 1 June 24th 07 03:31 PM
MS database query: Statement CASE WHEN THEN ELSE END riso Excel Programming 2 March 5th 07 09:31 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"