Search results

  1. JPaulo

    How to Call a random record from table in a form

    Hi; Private Sub Form_Open(Cancel As Integer) Randomize Dim rs As DAO.Recordset Set rs = CurrentDb.OpenRecordset("YourTable", dbOpenDynaset) With rs If .EOF Then Exit Sub Else .MoveLast .AbsolutePosition = CLng(Rnd() * .RecordCount) Me.YourTextBox = !YourFieldInTable End If .Close End With Set...
  2. JPaulo

    Need Help with Update Query in Loop Statement

    this correction was: SET Posted = Date() but use the same On Error Resume Next
  3. JPaulo

    Need Help with Update Query in Loop Statement

    test please: On Error Resume Next CurrentDb.Execute "UPDATE tbl_READY_approved_agents_post_Clist SET Posted = Date() WHERE ListingID = '" & tempvalueid & "'" CurrentDb.Execute "UPDATE tbl_READY_approved_agents_post_Clist SET PostedUser = '" & tempvaluePostedby & "' WHERE ListingID = '" &...
  4. JPaulo

    Need Help with Update Query in Loop Statement

    the field Posted is format Date/Time or text ?
  5. JPaulo

    Need Help with Update Query in Loop Statement

    ListingID = '" & tempvalueid & "'" 'text ListingID = " & tempvalueid & "" 'number
  6. JPaulo

    A query that shows records from now until the end of the month...

    In an empty column of your query: MonthRef: Format([YourFieldDate];"mm") In criteria: Format(Date();"mm") Or Format(Date();"mm")+1 Or Format(Date();"mm")+2
  7. JPaulo

    Change font color on ALL form controls on "Got Focus" and "Lost Focus"

    Re: Change font color on ALL form controls on "Got Focus" and "Lost Focus" Hi Chris; See the simple http://dl.dropbox.com/u/771097/EfeitosEspeciais.mdb
  8. JPaulo

    case command

    See; http://www.blueclaw-db.com/select_case.htm
Back
Top Bottom