LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Update Access Query save and close through Excel VBA

Hello All,

I wish to access an Access Query, update the query, save and close.

Explanation: I have an Access Query (Past Due OERS W/TOTALS) that I have to
open in design mode, right click on the fields labeled:

Late <31 Days: IIf([DATE_END_EVAL_PD] Between "060109" And "060208",1)

Late <61 Days: IIf([DATE_END_EVAL_PD] Between "051209" And "060108",1)

Late <91 Days: IIf([DATE_END_EVAL_PD] Between "051109" And "051208",1)

Late <120 Days: IIf([DATE_END_EVAL_PD] Between "051009" And "051108",1)

Late 120 Days: IIf([DATE_END_EVAL_PD]<"051009",1)

Select Zoom, and update the Between & And Dates (theyre dates formatted in
YYMMDD). Each field label will be updated with different dates.

Using VBA, I know how to open a table, but I cant figure out how to open a
query much less in design mode and get to the specific fields that need
updating.

Any help would be greatly appreciated.

 
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
Macro to open, Update links, save and close workbooks Anton Excel Discussion (Misc queries) 0 January 7th 10 03:18 AM
save & close after web query refresh JVLin Excel Discussion (Misc queries) 0 September 28th 05 04:27 PM
Auto Open file VBA Refresh MS Query Save Close gcutter[_2_] Excel Programming 2 September 26th 05 03:07 PM
How access/query/update Excel using VC? Ong Hong Peow Excel Programming 1 September 21st 04 01:59 PM
Automate open file, update links, run macro, close and save file Geoff[_7_] Excel Programming 2 August 26th 03 10:13 PM


All times are GMT +1. The time now is 08:05 AM.

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"