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 strongm 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. RJFost

    SQL query problem

    You might want to check out the Top N [Percent] clause for a select query; it lets you specify how many (either an absolute count or a percentage) records you want. If your sample records were anything like the real data, it looks like you could specify the top 1 for each SSN, if the data's...
  2. RJFost

    How to clean an array

    Looks like your array is fixed-size, so Erase won't turn & bite. But, in the future, if you're using dynamic arrays & clear them with Erase, it also releases the allocated memory for the array itself; you'll have to do a ReDim to reset the dimensions before you can reload it.
  3. RJFost

    New to Actuate- general question

    I'm a long-time IT professional & have been working with Crystal Reports since it debuted (not to mention Access reports); I'm very comfortable working with it. We're in the initial stages of a project to switch 8 stand-alone systems (all from different vendors) over to a single-source...
  4. RJFost

    Outputting results from Access VBA Module to a Table

    If you're testing records/data against some defined criteria (e.g., HOURS > 40, YEARS <= 5, etc.), why not just write an INSERT query to copy the records that satisfy the criteria into another table?
  5. RJFost

    Please help.

    If you need more flexibility, try loading the data value into a Variant-type variable & running it through the VarType() function. It'll return an integer value indicating the evaluated sub-type: 1 for null, 2 for integer, 8 for a string, etc.
  6. RJFost

    Making certain key's not work.

    VB has predefined constants for most every key on the keyboard; do a search in VB Help or the Microsoft site for "keycode constants". They're fairly mnemonic- the <CTRL> key is vbKeyControl, the "+" sign on the keypad is vbKeyPlus, etc. You'll want to check in the KeyPress event for the...
  7. RJFost

    Convert Hrs to Days and give the Date...

    Or use DateAdd, like Format(DateAdd("h",1300,#11/06/04#), "mm/dd/yy") which will return 12/30/04. If you skip the Format(), it returns 12/30/04 04:00 (it assumed a 00:00 start time on 11/06). That what you had in mind?
  8. RJFost

    apostrophe in field name

    I always took the brute force & ignorance approach & didn't allow apostrophes (in loaded data or user input). I'd check in a form or control's KeyPress event for Asc(39), set it to Null if it cropped up. I've seen various workarounds for the problem, but never found one that I was all-the-way...
  9. RJFost

    Suppressing a Sub-report

    It works here- maybe a config issue or the like, I don't know...but it's in probably 1/3 of the reports I've done here. Many are used in external reports or loaded to the hospital intranet, so suppressing (fields, sections, objects, subreports, whatever) is a big deal.
  10. RJFost

    Date Formula (need leading zero & abbreviated month in uppercase)

    As a rule of thumb, ToText() is your answer for any sort of numeric or date formatting issue.
  11. RJFost

    Date Formula (need leading zero & abbreviated month in uppercase)

    UpperCase (ToText (<value>,"dd-MMM-yyyy")) Today's date is returned as 18-JUN-2004
  12. RJFost

    Suppressing a Sub-report

    Au contraire- I use CR 8 & suppress sections and/or subreports all the time. The easiest way is to open the Report Options for the subreport & check "Suppress printing if no records"- no records, no subreport. Then, in the main report, open the Section Expert, select the section containing the...
  13. RJFost

    Runtime Error 13 type mismatch

    Dammit...you get called in to the office at zero-dark-thirty & you start to make all kinds of doofus mistakes. Brain cramp...mea culpa [morning]
  14. RJFost

    Can I shutdown applications using a vb application

    I've had some bad experiences with TerminateProcess (due to messaging, record locking, threads, whatever). Nowadays, I just declare: Const WM_CLOSE = &H10 & use that in a PostMessage statement: Result = PostMessage(hWnd, WM_CLOSE, Ø&, Ø&) Since it's the moral equivalent of the Close...
  15. RJFost

    Conncetion String

    Check http://www.able-consulting.com/ADO_Conn.htm; EXCELLENT site for connectivity examples
  16. RJFost

    Runtime Error 13 type mismatch

    Have you checked that the ADO library is enabled in the References list?
  17. RJFost

    Help with word wrap in a text box bound to a MS Access DB

    Do you have the textbox's MultiLine property set to True? That should allow the text to wrap around (to the limit of the MaxLength value, at any rate). You'll probably want to tweak the ScrollBar setting, too
  18. RJFost

    Keep window on top of other windows

    Set the form's Pop-Up property to True; it will always stay on top of the other forms in the MDI
  19. RJFost

    anybody there!!!!

    I'm nowhere near Liverpool (Indiana, damn the luck), but I'll be glad to offer what assistance or knowledge I can...
  20. RJFost

    Trim value of all fields

    I was wondering about that, myself ;-)

Part and Inventory Search

Back
Top