Search results

  1. A

    Excel VBA: String or variant variable showing empty when it is not

    Just saying thanks b/c I never knew the SOLVED option was under Thread Tools when you log in. If/when I get this whole code working, I will post. Thanks!
  2. A

    Excel VBA: String or variant variable showing empty when it is not

    I found out what the issue was. I did not mention that I had my code in a module in the PERSONAL workbook. Set wkbkBilling = Workbooks(1) is the problem. Since my code is in the PERSONAL workbook, I should have said: Set wkbkBilling = ActiveWorkbook ThisWorkbook (and probably Workbooks(1))...
  3. A

    Excel VBA: String or variant variable showing empty when it is not

    Hello, I have not completed working on the code below, but it is hopefully going to uncheck an item in column B's filter (Filter:=2) of the Billing workbook if the address in column D of the Billing workbook is found in the AddrList workbook. I have a question about why my variable...
  4. A

    WHERE statement with 2 criteria and involving Dates

    Minty and static, the forum won't let me add to your reputation b/c it says I have to spread it around. I added to everyone's reputation on this thread, so maybe it is b/c I have added to your reputation before. Otherwise, I would add to your reputations. Thank you, again.
  5. A

    WHERE statement with 2 criteria and involving Dates

    jdraw, I just finished getting the db ready to upload when I saw the two replies from Minty and static. Their code works! Thank you so much for your help and willingness to upload the db. Thanks, again!
  6. A

    WHERE statement with 2 criteria and involving Dates

    static, thank you so much. It works! I can't believe I didn't catch the change you made with DateNetwork. Thank you also for the flexibility with the msgbox so that if there is missing info in the Begin or End date or both, it will give a msgbox. Thank you very much, again, for your patience...
  7. A

    WHERE statement with 2 criteria and involving Dates

    Hello Minty, This is the sSql line in the immediate window. SELECT DateNetwork FROM tblNetworkPerformance WHERE BeginDate = #2/1/2017# OR EndDate = #2/1/2017# ; But here is the issue, after I looked at statics code, it's DateNetwork =, etc.: sSql = sSql & "WHERE DateNetwork = #" &...
  8. A

    WHERE statement with 2 criteria and involving Dates

    static, thank you. Can you take a look at my reply to Minty b/c I get Run time 3061 error Too few Parameters for both codes, but yours is Expected 1. I thought OpenRecordset had optional parameters to it except for the first one. I made adjustments per my reply to Minty but I still get that...
  9. A

    WHERE statement with 2 criteria and involving Dates

    Minty, thank you for your reply. I'm trying yours and static's code and I'm getting similar errors. For your code I left everything as you wrote it, except changed the dbOpenSnapshot to dbOpenDynaSet and the <> to = in the WHERE statement. The error I get is Run Time error 3061 - Too few...
  10. A

    WHERE statement with 2 criteria and involving Dates

    Cronk, thank you very much for your reply. Would you take a look at my response to jdraw? I would like you to see my new code, based on yours, and see the new Compile error I'm getting, if you don't mind. Thank you, again.
  11. A

    WHERE statement with 2 criteria and involving Dates

    jdraw, I've changed the code now to Cronk's suggestion and I get a different error, so let me list two issues below: 1) The 1st error you are asking about is on the line below. I am confused on having two criteria for a WHERE statement, and I am lost on how to use the quotes. With just 1...
  12. A

    WHERE statement with 2 criteria and involving Dates

    Thank you, jdraw. I tested it and it will still filter the form b/c I think IsDate is seeing if there is a date in the text box, which there is, but I need a msgbox if a user puts in a date that does not exist in the underlying table of the form. For ex: if the table only has dates of 2/1/2017...
  13. A

    WHERE statement with 2 criteria and involving Dates

    Hello, I have a BeginDate field and an EndDate field on my form that filters via a command button the data on the form to just the dates within the range entered by the user. I just have a form, frmNetworkPerformance (no subform), based on a table, tblNetworkPerformance. The code in the On...
  14. A

    Can you turn a one to many relationship between two tables into a many to many relati

    Thank you, gemma-the-husky for your input. I appreciate your help.
  15. A

    Can you turn a one to many relationship between two tables into a many to many relati

    Thank you very much, CJ_London. I appreciate you replying and providing an example/alternative of what I can do. I mentioned to the others, I am going to try all of these out and reply back re: the outcome. Thank you again for your help. (Pardon the late reply.)
  16. A

    Can you turn a one to many relationship between two tables into a many to many relati

    Thank you, so much HiTechCoach. I will look this over as I mentioned in the other replies, and I will be letting you know what the outcome of the different replies are. I appreciate your input and example/reference.
  17. A

    Can you turn a one to many relationship between two tables into a many to many relati

    Thank you, jdraw. I appreciate your help. I'm going to investigate these other replies before uploading the db. I will reply to everyone with the outcome of my tests. Thanks, again.
  18. A

    Can you turn a one to many relationship between two tables into a many to many relati

    sneuberg, you have been so helpful. I appreciate you answering my question and providing a reference and sample database as a guide. Thank you so much. I will investigate this and the other answers and let you all know the outcome. By the way, I see from your reply and one or two others that...
  19. A

    Can you turn a one to many relationship between two tables into a many to many relati

    Thank you, jdraw. I appreciate your reply. Yes, I was just wondering if it would be ok to change my structure to a many to many for the purpose of being able to use a project I found on the internet to search for records in my subform (b/c the project is based on a many to many set up). I wanted...
  20. A

    Can you turn a one to many relationship between two tables into a many to many relati

    Thank you for replying, sneuberg. I have the subform working as I want it in day to day use. It is a continuous subform filtered by the combo box from the main form (see pic of a test form/subform below). https://drive.google.com/open?id=0B9IyKJSJ52ghamVncDJrbDM1VlU I now need to find records...
Top Bottom