Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2008, 03:06 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
iTrader: (0)
Agostino is on a distinguished road
Default Report Looking at Null Value

Looking for some help on creating the code for the following:

I have a table called 'tblBoardOrders' with the following fields in

OrderID, NewStatus, TagNotes, OrderedDate, etc

What I want it to do is to open the report bassed on the fact that the OrderedDate is null and includes all the records with a null value in the report. Once the report has run it enters the date (which would be today) in all the records that had a null value in the ordereddate field.

A little snag to start is that it would look at the winlogo to compare that to a record in the tblSalesman table to see which office that person worked at, this would then determine which report would be used.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-14-2008, 08:13 AM
Member
 
Join Date: Oct 2007
Posts: 41
iTrader: (0)
TonyES is on a distinguished road
Default

The query for the report would be: SELECT * FROM tblBoardOrders WHERE OrderedDate Is Null.
After running the report from VBA code you would put the following:
CurrentDB.Execute "UPDATE tblBoardOrders SET OrderedDate = Date() WHERE OrderedDate is Null"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-14-2008, 10:42 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
iTrader: (0)
Agostino is on a distinguished road
Default

Thanks for the reply. Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

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



All times are GMT -6. The time now is 10:22 AM.