Recent content by CdRsKuLL

  1. C

    Query Criteria and Function()

    just thought I would post how I managed it in the end.. I dropped into VBA and did the mysql statement in there... Dim strSQL As String 'build sql up strSQL = "SELECT Contracts.[Contract Number]..... If GetEst() <> "" Then strSQL = strSQL & " A.... If GetCounty() <> "" Then...
  2. C

    Query Criteria and Function()

    Hi fella, Yep I'm already quite confident with vb coding the mysql line, just it's alot easier using the query box. Did alot ages ago with php and mysql.. very similar :-) Will give it a go and see what happens cheers Steve
  3. C

    Query Criteria and Function()

    Wouldn't this then show up all NULL values even when there is a value in the function ? I only want NULL values to show when nothing is in the search box.. Proper stumped :-! Thanks for all the help mind :-)
  4. C

    Query Criteria and Function()

    yep spot on m8.. I did try putting something like this in the Criteria but it didn't work... IIf(SearchFun()="*",Is Null,Like SearchFun()) Thanks Steve
  5. C

    Query Criteria and Function()

    Hi Peeps, Really hoping someone can help. I'm trying to create a simple search page. I have many fields and have coded it like this.... In a text box you type what you want to search for. This then populates a global variable.. ie.. searchtext = "big" I then have a public function like...
  6. C

    conditional formating text

    Thanks guys.. Ii ended up using [textbox] Like "H*" but is a bit of a pain as I have 31 boxes to do. Steve
  7. C

    conditional formating text

    I am trying to format a text box so when it contains either "HH" , "HA" or "HP" it turns blue. I assume I use the expression is box... I've tried Like "H*" but that doesn't work.. can anyone offer some advice ? Many thanks Steve
  8. C

    Function() wildcard in query ?

    That got it :-) fantastic !!! top man George.. thank you very much :-)
  9. C

    Function() wildcard in query ?

    its coming out like... thanks
  10. C

    Function() wildcard in query ?

    hmm must be doing something wrong.. I'm I using the function correctly ? I've tried using "*" and "'*'" and " LIKE '*'" but still it doesnt list anything.. but if it use's something like "Staff" it then lists all employee's who are in the department called 'Staff' thanks again for the help...
  11. C

    Function() wildcard in query ?

    I'm having trouble with a query when trying to list everything in my table. I have placed a function which passes a global variable into the query builder. The variable is selected by a combo box. This all works great when I want to only list part of the table but I am unsure how to pass a...
  12. C

    Record source - showing records ?

    I am creating a holiday planner and want to show all the employee's on a continuous form (month view). Is there anyway to force a record to appear even if it fails the sql statement ? The reason being is that I want to show all the employee's even if they are not having any time off in that...
  13. C

    RecordCount ?

    Your a clever man :-) tis working now.. thank you so much ! onward and forward now !.. lol
  14. C

    RecordCount ?

    ahh.. so recordcount holds the position of the record its currently on ? not the total number of records... sounds like a plan :-) going to see THANK YOU..
  15. C

    RecordCount ?

    My head just can't suss out whats going on.. PLEASE help me before it fall's off. I'm coding up a holiday vacation planner for work here. After lots of messing about this is how I've done my table... tblHoliday Fields are.. employee holidaymonth day01 day02 day03 day04 etc.. the day## is the...
Back
Top Bottom