Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2007

Tip: Looking for answers? Try searching our database.

IMMEDIATE WINDOW

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DS - 17 Sep 2007 19:56 GMT
How do I check this Function in the Immediate Window?

Option Compare Database
Option Explicit
Public Function REDACT()
Dim strPath As String
strPath = Nz(DLookup("BackName", "tblBackPath", "BackID=1 AND
BackActive=-1"), "")
End Function

I'm putting in ?REDACT()  and getting nothing back.

Thanks
DS
George Nicholson - 17 Sep 2007 19:59 GMT
> I'm putting in ?REDACT()  and getting nothing back.
Understandable.

Additions are enclosed with *, but all * should be removed before trying to
run the code.

Public Function REDACT() *As String*
    Dim strPath As String
    strPath = Nz(DLookup("BackName", "tblBackPath", "BackID=1 AND
        BackActive=-1"), "")
   *REDACT = strPath*
End Function

HTH

> How do I check this Function in the Immediate Window?
>
[quoted text clipped - 10 lines]
> Thanks
> DS
DS - 17 Sep 2007 20:09 GMT
YIPPEE It works!
Thank you George.  It only took two days!
Once again Thank You Very Much!
DS
Klatuu - 17 Sep 2007 21:12 GMT
Actually, you don't really need the strPath variable:

Public Function REDACT()
   REDACT = Nz(DLookup("BackName", "tblBackPath", "BackID=1 AND
BackActive=-1"), "")
End Function

Signature

Dave Hargis, Microsoft Access MVP

> YIPPEE It works!
> Thank you George.  It only took two days!
> Once again Thank You Very Much!
> DS
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.