Advertisement
Advertisement
| 09.23.2008 at 02:33PM PDT, ID: 23756693 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: |
Private Sub Form_Current()
'Me.memAccomplishments.DefaultValue = cQuote & Me!memAccomplishments.Value & cQuote
'Me.memComments.DefaultValue = cQuote & Me.memComments.Value & cQuote
'Me.memNextWeek.DefaultValue = cQuote & Me.memNextWeek.Value & cQuote
Dim rs As DAO.Recordset
Dim strSQL As String
Dim db As DAO.Database
strSQL = "SELECT tblCFPNotes.*, tblCFPNotes.dtNoteDate, tblCFPNotes.txtProjNum " & vbCrLf & _
"FROM tblCFPNotes " & vbCrLf & _
"WHERE (((tblCFPNotes.dtNoteDate) Between ((Date()-Weekday(Date())+5)-30) And ((Date()-Weekday(Date(),0)+1)+4)) AND ((tblCFPNotes.txtProjNum)=" & Me.txtProjNum & "));"
Set db = CurrentDb()
Set rs = db.OpenRecordset(strSQL, dbOpenDynaset)
If Not (rs.BOF And rs.EOF) Then 'There are no records if Beginning-Of-File and End-Of-File are both true.
If rs.RecordCount > 0 Then
rs.MoveLast
Me.memAccomplishments.DefaultValue = cQuote & rs!memAccomplishments.Value & cQuote
Me.memComments.DefaultValue = cQuote & rs!memComments.Value & cQuote
Me.memNextWeek.DefaultValue = cQuote & rs!memNextWeek.Value & cQuote
End If
End If
End Sub
|