I am using Access 2003, the report is based on a simple query, I open report from the form in Preview. SegmentID is one of the fields selected from the table. What I am trying to do is to hide duplicates, if necessary. For example:
SegmentID=1 compared to a record with ID=001
SegmentID=2...
Me.SegmentID is being reset to 1 no matter which record it's on. When I make SegmentID visible on report, it shows what it should be 1,2,3... I am not sure why it's doing that.
Hello, I have a simple If statement for the Details On Format. Please see example below:
If Me.SegmentID>1 Then
Me.Description.Visible=False
Else
Me.Description.Visible=True
End If
It worked just fine, until I added RecordCount field for additional validation. Now, the If statement always...
MajP,
Thank you for the code, it's very clean. I am having problem with 'Public faytList As FindAsYouTypeListBox' line, I am getting a Compile error: A module is not a valid type. Any advice?
Thank you,
lbigk
I am trying to execute the following code:
Set rstQt = dbs.OpenRecordset("SELECT tmpWeeklyLF.State, tmpWeeklyLF.Year, tmpWeeklyLF.DP1, tmpWeeklyLF.Est1, tmpWeeklyLF.DP2, tmpWeeklyLF.Est2, tmpWeeklyLF.DP3, tmpWeeklyLF.Est3, tmpWeeklyLF.DP4, tmpWeeklyLF.Est4, tmpWeeklyLF.DP5, tmpWeeklyLF.Est5...
JB,
Thank you very much, it certainly pointed me in the right direction. I didn't consider DateAdd function before, I should be able to figure it out from here.
Thank you again,
lbigk
Hello,
I need to get a Date for each Monday in the year. I have 2 variables Year and Week, so at the end what each record should have is:
2008 1 Jan-7
2008 2 Jan-14
Thank you.
OK, I think the simplest way would be to declare RespiteRate1 as a Global value and in the report query have a field with calculation Wages:[hours] * RespiteRate1
I don't believe that you can load the data without Excel being open, but you can close it at the end of the code to avoide an Application running on the background.
And, you can turn off warnings at the beginning of the code: DoCmd.SetWarnings False
Hope this helps.
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.