Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wx5chr

    Adding by years

    Thanks much. I knew it was something easy.
  2. wx5chr

    Adding by years

    This should be an easy question, but I can't remember how to do it for the life of me. I have a field [Rev_Pub_Date] which is formatted as a date. I want another field [Next_Rev_Date] to be automatically set two years later. Right now I have Next_Rev_Date = Rev_Pub_Date + 730, but this...
  3. wx5chr

    Automatically uncheck box

    Thanks for the tip. I really appreciate everything you've done for me.
  4. wx5chr

    Object Required on EOF

    Disregard. RoyVidar caught my typo.
  5. wx5chr

    Too few parameters on OpenRecordset

    Embarassed again. I can't even proof my own code. Thanks for the catch.
  6. wx5chr

    Object Required on EOF

    I am getting an "Object Required" error on the line marked below. Any ideas why? Dim dbTemp As DAO.Database Dim rsTemp As DAO.Recordset Dim strSQL As String Set dbTemp = CurrentDb strSQL = "SELECT T_Dates.Rev_Pub_Date, T_Dates.Current FROM T_Dates " & _...
  7. wx5chr

    Too few parameters on OpenRecordset

    New problem. Now I'm getting an "Object Required" error on the line marked below: Dim dbTemp As DAO.Database Dim rsTemp As DAO.Recordset Dim strSQL As String Set dbTemp = CurrentDb strSQL = "SELECT T_Dates.Rev_Pub_Date, T_Dates.Current FROM T_Dates " & _...
  8. wx5chr

    Automatically uncheck box

    I Feel so dumb. I didn't bother to check the field name. It turns out that for some reason, I used CurrentCk as the caption, but the actual field is Current. It's working now. Thanks.
  9. wx5chr

    Too few parameters on OpenRecordset

    I Feel so dumb. I didn't bother to check the field name. It turns out that for some reason, I used CurrentCk as the caption, but the actual field is Current. It's working now. Thanks.
  10. wx5chr

    Too few parameters on OpenRecordset

    Here's the SQL statement: SELECT Rev_Pub_Date, CurrentCk FROM T_Dates WHERE (((T_Dates.Proc_ID)=45) AND ((T_Dates.CurrentCk)=-1)) ORDER BY Rev_Pub_Date; When I pasted it, I selected to view the data and two parameter boxes came up. One for CurrentCk and the other for T_Dates.CurrentCk. What...
  11. wx5chr

    Automatically uncheck box

    I added the semicolon and Proc_ID is a number type. I've never done the procedure you describe. Can you give me more info on how to do it.
  12. wx5chr

    Too few parameters on OpenRecordset

    I don't fully understand where you mean when you say, "Paste it directly into the SQL view of the QBE (or here) and check if it is a valid SQL..."
  13. wx5chr

    Too few parameters on OpenRecordset

    Larry DeLarvelle is looking at this with me, but I wanted to see of anyone else had any ideas. Can someone tell me why I get an error "too few parameters. Expected 2." at the Set rsTemp = dbTemp.OpenRecordset(strSQL) line in the following code? My field types are as follows...
  14. wx5chr

    Automatically uncheck box

    I tried it, to no avail. I still get the same error, "too few parameters. Expected 2." My field types are as follows: Rev_Pub_Date is a date field Proc_ID is numerical CurrentCk is a checkbox (Yes/No) Here's my updated code: Dim dbTemp As DAO.Database Dim rsTemp As DAO.Recordset...
  15. wx5chr

    Automatically uncheck box

    Larry, here's my modified code: Dim dbTemp As DAO.Database Dim rsTemp As DAO.Recordset Dim strSQL As String strSQL = "SELECT Rev_Pub_Date, CurrentCk FROM T_Dates " strSQL = strSQL & "WHERE (((T_Dates.Amdt)='" & Me.Amdt & "') and ((T_Dates.CurrentCk)=-1));" Set...
  16. wx5chr

    Automatically uncheck box

    Larry and Golom, I found the references area. I understood Golom to say just to open a form, but in actuality I needed to open the VB window, then use the Tools menu. Larry, I'll get back with you about helping modify the code.
  17. wx5chr

    Automatically uncheck box

    I don't see any selection for references under the tools menu. Am I just that blind. By the way, I'm using Access 2000.
  18. wx5chr

    Automatically uncheck box

    Larry, I tried using your code, however I got a "User-defined type not defined" error on the Dim dbTemp as DAO.Database line. Any ideas?
  19. wx5chr

    Automatically uncheck box

    I apologize, but I do need some help customizing the code. The table name is T_Dates with the following fields: Amdt Rev_Pub_Date Next_Rev_Date Remarks CurrentCK Do you need anything else? I'm going to try tweaking it myself as well.
  20. wx5chr

    UCase not working

    Thanks very much for the quick replies. I decided to use > in the format.

Part and Inventory Search

Back
Top