Search results

  1. B

    Query based on multiple criteria

    I have the following query :- SELECT tblQuotes.Region, Count(tblQuotes.Region) AS xCount, tblQuotes.Sales_Route FROM tblQuotes GROUP BY tblQuotes.Region, tblQuotes.Quote_Status, tblQuotes.Sales_Route HAVING (((Count(tblQuotes.Region))<>0) AND ((tblQuotes.Quote_Status)="Accepted")); This...
  2. B

    Dlookup returning #Name?

    Wonderful, thank you very much.
  3. B

    Dlookup returning #Name?

    Yes, I'm using a union for another report. With this one though, the various queries have differing numbers of columns, which makes a union a bit of a pain. Something I hadn't though of, which I can consider though! Have another Thanks :)
  4. B

    Dlookup returning #Name?

    I have around 10 queries checking for different issues. In order to give an overview of the issues, I had one big form, which had 10 subforms relating to each of the queries. I thought I could tidy this up by pulling the values from the queries into text boxes (or labels) into one report...
  5. B

    Dlookup returning #Name?

    Okay - copy attached. Thanks!!
  6. B

    Dlookup returning #Name?

    Yes - OnLoad Compact and repair didn't help. My tables are SharePoint lists. Obviously, I'll have to remove these, meaning the query won't work. Would it still be worth uploading?
  7. B

    Dlookup returning #Name?

    In design view text6 had the word Unbound in it. I created another text box (text5) also has Unbound showing in design view - same problem. However, when I create a label and set iCount to it's caption, the value displays fine. This is okay temporarily, but I would prefer a text box if possible...
  8. B

    Dlookup returning #Name?

    I did actually spot that while I was awaiting your reply and amended the code. :) Must be close now because when I msgbox iCount I see the value I want. But, on Me.Text6 = iCount I get :- "You can't assign a value to this object" Me.Text6 is showing as Unbound
  9. B

    Dlookup returning #Name?

    JHB and Minty - I tried both your suggestions, and gave the following errors JHB The expression you entered as a query parameter produced this error: 'xCount' Minty The expression you entered as a query parameter produced this error: 'QuoteStatus'
  10. B

    Dlookup returning #Name?

  11. B

    Dlookup returning #Name?

    Hi all, i am trying to set a dlookup on a query to a text box on a report In the On Load event of the report, I have tried the following code :- Me.Text0.ControlSource = DLookup("Count", "qryReportQuotesByStatus", "Quote_Status = 'Accepted'") and [CODE]Me.Text0.ControlSource =...
  12. B

    Combobox not sorting

    This worked. Thank you.
  13. B

    Combobox not sorting

    Hi all, I have a combobox with a row source of :- SELECT tblBrokerages.ID, tblBrokerages.Brokerage_Name FROM tblBrokerages ORDER BY tblBrokerages.Brokerage_Name; The bound column is 1 and the column count is 2 When new entries are added to tblBrokerages, they appear at the bottom of the...
  14. B

    Allowing selection of null from combobox

    Thats right. I'm not sure what point you're making here, but anyway... Sorry, I missed this post. The example works great, and is what I will use going forward. I was using the button approach previously as a work around, and that worked. I followed your suggestion and deleted the control...
  15. B

    Allowing selection of null from combobox

    It's not really an extraordinary claim. I posted my original question, answered the following questions. That's all there is to it. I'm happy to answer anything else, but I feel no need or inclination to prove anything.
  16. B

    Allowing selection of null from combobox

    The combobox is unbound There is no input mask There is no code to change the value I feel the SQL was worth posting as it's the source of the combobox, and I stick by that fact.
  17. B

    Allowing selection of null from combobox

    I'm fairly sure, as I've explained the situation, someone may have a solution without having to post the database, but you may be right.
  18. B

    Allowing selection of null from combobox

    Not quite. The list is pre-defined. To have a completed form, the user either has to have a null value, or a option from the combobox. There are no issues with the items on the combobox. I would just like the facility to delete the value if it is picked by mistake. Currently, if the user deletes...
  19. B

    Allowing selection of null from combobox

    The value associated with this combo box isn't required to complete the form. But if someone selects a value, and then decides that there shouldn't be one, I'd like the option to remove the selected value from the combobox. I've gotten round this currently by having a button that clears the...
  20. B

    Allowing selection of null from combobox

    Thanks for your suggestion. Unfortunately, this didn't create a null value to pick from, and the user is still unable to remove a previously selected entry.
Back
Top Bottom