I have a subreport that I want to show as a graph. The source is a crosstab query that returns data looking like the following:
ScenarioID Type Q1 Q2 Q3 Q4
--------------------------------------------------------
1 Required # # #...
I am using Access 2000, and very often when I open a report in Preview mode, the report has lost its page margin and orientation settings. (For example, I have a report that is supposed to open in landscape and have 0.5 inch margins; about 1/3 of the time it opens in portrait with 1 inch...
You were almost there. Use the InStrRev function:
Function FixFileName(PathString As String)
Dim LastBackslashPos As Integer
LastBackslashPos = InStrRev(PathString, "\")
If LastBackslashPos <= 0 Then
FixFileName = CVErr(xlErrNA)
Exit...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.