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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Mav3000

  1. Mav3000

    Newbie SQLSRV_Query 'Null Resource' Question

    Phil, That has sorted it and now works perfectly. Thank you very much!
  2. Mav3000

    Newbie SQLSRV_Query 'Null Resource' Question

    I am trying to query a mysql database using PHP. I have a function in a seperate PHP (PHP File A) file which I call to connect to the database in PHP File B: PHP File A: =========== function RS_Connect() { // Database Connection Settings $RS_Server = "RSDB"; $RS_Settings =...
  3. Mav3000

    Simple Basic Formula Not Working

    I think the Distinct counts were causing the problem. When you set CR to use Default Values, what is the default value for a date? Thanks again for your help, Mav3000 :)
  4. Mav3000

    Simple Basic Formula Not Working

    Please ignore the above - I believe I've sorted the problem. It was to do with other Report Options and not those mentioned above.
  5. Mav3000

    Simple Basic Formula Not Working

    Hi LB, When I enable the above two settings in Report Options, it seems to prevent me from filtering the Records using the Select Expert. I wish to filter the Reports to show all records where: IsNull({dtblDMC2163Options.D_Access_Obtained_A}) However, this formula in the Select Expert...
  6. Mav3000

    Simple Basic Formula Not Working

    Hi LB, When I set the 'Convert Database NULL Values to Default' and 'Convert Other NULL Values to Default' to Null, the formula works! Does this have any negative effect in keeping these Report Options checked? Thanks for your help in solving this problem for me so quickly :)
  7. Mav3000

    Simple Basic Formula Not Working

    Hi LB, The date fields are sometimes populated independently, sometimes together. e.g. some records have a Forecast only, others have Forecast and Actual. The formula works fine for records which have both a Forecast and an Actual (and the 'N/A' check works for these). It's only where there...
  8. Mav3000

    Simple Basic Formula Not Working

    To explain further, this works: dim DateForecast as date DateForecast = DateValue({dtblDMC2163Options.D_MSV_F}) formula = DateForecast However this does not work: dim DateForecast as date dim DateActual as date DateActual = DateValue({dtblDMC2163Options.D_MSV_A}) DateForecast =...
  9. Mav3000

    Simple Basic Formula Not Working

    Hi all, I've the following formula which compares two date fields: ' Evalulate Forecast & Actual Dates dim DateForecast as date dim DateActual as date dim Result as string ' Comparision DateActual = DateValue({dtblDMC2163Options.D_MSV_A}) DateForecast =...
  10. Mav3000

    VBA Can't Insert Long String Into Excel Cell

    Hi Hugh, I didn't see that article, despite Googling for the answer and reading several other pages. Thanks for link that explains the work around really well.
  11. Mav3000

    VBA Can't Insert Long String Into Excel Cell

    Hi All, I've a function that opens an Excel Object and worksheet, and then attempts to put a variable's content into a cell. When the variable (which is a String) has more than 256 characters in it, Excel refuses to insert it into the cell and gives a Error 1004 Application-defined or...
  12. Mav3000

    SQL Select Distinct Text Fields and Order By - in Excel VBA

    Sorry guys, it's an SQL database, connecting via ADO. I'm unsure of the exact field types as I can't access the DB directly - only via ADO and Excel. At the moment I have my function pulling the fields into a worksheet, then removing duplicates and sorting the remainder, then loading them into...
  13. Mav3000

    SQL Select Distinct Text Fields and Order By - in Excel VBA

    Thanks Skip, That is the approach I am trying at the moment. I'm putting the recordset onto a worksheet and using an advanced filter to filter the cells specifying unique records only. I'll then sort it, and set it as the row source on the combo box.
  14. Mav3000

    SQL Select Distinct Text Fields and Order By - in Excel VBA

    Hi All, I've an Excel application which queries a database table, and uses the results to populate a combo box. However, the table has lots of duplicate values in it - I'd like one of each to appear only, hence a SELECT DISTINCT requirement. I'd also like to sort them in ascending order, so an...
  15. Mav3000

    Textbox Keydown KeyCode Not Defined Error

    All sorted - the function I was calling on the KeyCode = 13 was invalid, however Excel was telling me that KeyCode itself was the problem.

Part and Inventory Search

Back
Top