Search:

Type: Posts; User: DaveBo

Page 1 of 11 1 2 3 4

Search: Search took 0.34 seconds.

  1. Replies
    1
    Views
    834

    Accessing a Sybase .DB from VB6

    As I understand it I first need a Sybase ODBC driver
    where can I get this?

    Any other help/hints/pointer welcome. Totally lost.

    Thanks, DaveBo
  2. Re: ERROR_MESSAGE() not returning RaiseError's message

    BEGIN CATCH
    INSERT INTO AA_ErrorLog (
    ErrSource, ErrLine, ErrNum, ErrMsg, Az_ID, Last_Name, First_Name)
    VALUES(
    ERROR_PROCEDURE(), ERROR_LINE(), ERROR_NUMBER(), ERROR_MESSAGE(),
    ...
  3. ERROR_MESSAGE() not returning RaiseError's message

    I'm running a stored procedure (SQL Server 2005) that's doing an Insert Into a table.

    The table has a trigger that is using RaiseError because a value is invalid.

    The problem:
    When I run the...
  4. Re: Access specification filetype for transfertext of CSVs

    Thanks, that's helpful. The CodePage field from that "Character Recognition" table seems to be what the specification FileType wants in it.

    Somehow, when doing a manual import and creating a spec...
  5. [RESOLVED] Access specification filetype for transfertext of CSVs

    I'm trying to generate specifications files in Access automatically (in code) to handle different formats of CSV files.

    i.e. I read in the 1st line containing the column names and then create a...
  6. Re: Regular expressions, find string of all same character

    Si_the_geek, Thanks!
    That will work even better. And I think you're right that it will be faster.

    DaveBo
  7. Re: Regular expressions, find string of all same character

    We're using regular expressions quite a bit here on SQL 2000

    I'm not sure where we originally got the functions from, but
    see http://www.ecodebank.com/details/?catid=16&catsubid=0&nid=142
    or ...
  8. Re: Regular expressions, find string of all same character

    No, I'm looking for a "regular expression" for this,
    so I can incorporate it in a SQL query, etc.

    Thanks, DaveBo
  9. Replies
    6
    Views
    935

    Re: Dynamic SQL and Exec returning a value

    Brucevde, excellent. Just what I always wanted (sort of)

    I'm going to have some fun, and maybe even do something useful, with this.

    Thanks, DaveBo
  10. Replies
    6
    Views
    935

    Dynamic SQL and Exec returning a value

    Is it possible to Exec a dsql statement and return a simple value to a local var? e.g

    Set @RecCnt = Exec('Select Count(ID) from tblContacts Where FirstName=''David''')

    This doesn't work, and...
  11. Replies
    3
    Views
    3,426

    Re: Access form, refresh vs. requery methods

    Actually, for an Access form I think it's .Repaint that does the graphical redrawing of the form
  12. Replies
    3
    Views
    3,426

    Access form, refresh vs. requery methods

    Could someone clarify the difference between the me.refresh & me.requery methods on an Access form that's got fields bound to a table?

    What's the difference?
    Should they both be used? and when?...
  13. Replies
    6
    Views
    3,791

    Re: Reference a column by ordinal position?

    Got it using Dynamic SQL and COL_NAME() OBJECT_ID() functions

    Declare @sql VarChar(4000) -- storage for dynamic SQL string
    Declare @tbl VarChar(100) -- opt. var for table name...
  14. Regular expressions, find string of all same character

    Any regular expression gurus out there that know how to identify if a string contains all the same character?

    e.g. "11111"
    or "xxxxxxxxxxxxxxx"
    or "a"

    without having to specify the actual...
  15. Importing an OpenOffice.org ODS file to Access

    Anyone know if there's a way to import an OpenOffice OOo ?
    Calc spreadsheet .ODS file into MS Access?

    Thanks, DaveBo
  16. Excel sheet phone numbers importing as Scientific notation, e+xx

    When I import spreadsheets from Excel into Access that contain telephone numbers they sometimes come through as Scientific notation or as a resolved equation.
    e.g. 123-456-7890 might come through as...
  17. Replies
    4
    Views
    993

    Re: Access query QBE expr aliases popping up

    Yes, you're right.

    My major problem was that I automatically import files, e.g. from CSVs and XLSs using the TransferText & TransferSpreadsheet methods in VBA, but always to the same temporary...
  18. Replies
    4
    Views
    993

    Access query QBE expr aliases popping up

    I've written many queries in the Access QBE that reference linked tables.
    Often, when I reopen a query many of the fieldnames are suddenly replaced with Expr1: OldName, Expr2: OldName2 etc.

    Any...
  19. Access datasheet and setting focus to a column/field programatically

    I have a datasheet subform on an Access form, unfortunately, it's got more than 100 fields/columns so I had to cheat a bit to make it, i.e. the "wizard" couldn't handle it (some wizard!).

    I have...
  20. Access - setting a field's dropdown/lookup programatically?

    I have an Access table in a subform datasheet that I want to apply combobox style dropdown/lookup lists to.
    But, as each field is set to an item from the dropdown list I want to remove that option...
  21. Access - determine current column in a subform?

    In Access VBA, is there a way to determine what column/field of a subform datasheet has the focus?

    Something like: Me.Child0.Form.Recordset.Fields.Name ?

    Thanks, DaveBo
  22. Replies
    6
    Views
    3,791

    Reference a column by ordinal position?

    Is there a way, in an SQL select statement, to refer to a column/field by other than its name?

    e.g. in the Order by clause you can use "2,1" to refer to the 2nd & 1st columns.

    The problem is...
  23. Replies
    1
    Views
    1,269

    API to send clipboard to printer?

    Is there an API method for sending the contents of the clipboard to the default printer?

    I'm actually trying to do this in MS Access VBA.
    I've captured a screen-shot to the clipboard and now want...
  24. Replies
    0
    Views
    966

    Print clipboard from Access VBA?

    Any ideas how I can send the contents of the clipboard to the printer
    from within Access VBA?

    There must be an API??

    Thanks, DaveBo
  25. Replies
    4
    Views
    762

    Workaround using .DefaultValue

    Maybe this should be telling me something, but, a workaround I've just found is

    when I load the textbox values in VBA if I simultaneously load the defaultvalue
    then it prints fine.
    e.g.
    ...
  26. Replies
    4
    Views
    762

    Re: Access form missing fields at printout

    Printing the form as:
    - While the form is displayed and active
    - File - Print ...

    The Print Preview shows the data there fine, it just won't print.

    I just added another textbox to the main...
  27. Replies
    4
    Views
    762

    Textbox on a subform seems to be the culprit

    I've tried reenacting the crime from scratch.

    Totally new Access DB file
    Form1 with nothing but a Textbox on it - saved
    Form2 with nothing but Form1 as a subform - saved

    I open the form, type...
  28. TabCtl Tab Control on Access form not printing

    In Access 2002 I've just tried placing a simple tab control onto a new form.
    It shows up fine and seems to work as advertised on screen,
    but, the tabctl outline and tab headings don't print.

    Any...
  29. Replies
    4
    Views
    762

    Access form missing fields at printout

    I have a form in an MS Access project file (.adp) that has a subform on a tab control. On screen it looks fine, but when I send it to the printer the textboxes and checkboxes on the subform are...
  30. Impedance of microphone input vs audio in/line in

    Anyone know what the expected impedance is for the mic vs audio/line-in connectors on a typical PC?

    Thanks, DaveBo
  31. Re: FileCopy NTFS to FAT32 changes file's modified date

    Thanks jcis,

    For now I simply put a 5-second fudge factor in the file comparison logic.
    i.e. to consider a file older or newer I insist on at least a 5 sec diff.
    The 5 seconds is an arbitrary...
  32. Re: FileCopy NTFS to FAT32 changes file's modified date

    Forgot to add my little code snippet

    Private Sub Command1_Click()
    Const File1 = "C:\Junk.doc"
    Const File2 = "E:\Junk.doc"

    FileCopy File1, File2
    Debug.Print File1 & " ";...
  33. Replies
    27
    Views
    1,443

    Re: Turn on a power supply without a motherboard?

    I've done this jumper trick with a PSU, (pretty sure it was an ATX)
    and it works fine. So what's all the fuss?
  34. FileCopy NTFS to FAT32 changes file's modified date

    I've just been bitten by an annoying quirk, experienced on 2 different WindowsXP systems.

    When copying a file from an NTFS partition to a FAT32 device, the new file's modified date is sometimes...
  35. Replies
    25
    Views
    1,131

    Re: [serious] virus problem

    Just a thought...
    does your niece have a large magnet?
    Have you tried degaussing? (assuming this is a CRT)
  36. Replies
    10
    Views
    2,311

    Re: Virus vs Hardware

    I find this just a bit hard to believe. Sounds like a "WOM", Write-Only Memory, (which incidentally do exist, I've worked on them).

    I can't imagine any virus doing physical damage to a system,...
  37. Replies
    5
    Views
    3,688

    Laptop battery power meter & sysinfo interval

    I've been playing with my Win98, HP laptop's power meter and a VB app using the sysinfo control to monitor battery charge/discharge.

    The info seems to be updating every 2 minutes, but with > 4...
  38. Printing 11x17, 11" x 17", Tabloid printers

    Anyone have any experience with PC printers handling 11x17" sheets?

    I often printout sections of topo maps and nautical charts, but the 8.5x11 is just a bit too small usually.

    Thanks, DaveBo
  39. Re: PC Tuning, Tune-up, Restore that out-of-box zip

    I found one brief thread on registry cleaning
    http://www.vbforums.com/showthread.php?t=268489
  40. PC Tuning, Tune-up, Restore that out-of-box zip

    Anyone have any suggestions for general, routine PC tune-ups?
    e.g. empty recycle bin
    clean out cache file areas
    do defrags
    put HD in washing machine on delicate cycle ...

    I know I've seen...
Results 1 to 40 of 426
Page 1 of 11 1 2 3 4



Click Here to Expand Forum to Full Width