Search Results - VBForums

Search:

Type: Posts; User: DataMiser

Page 1 of 13 1 2 3 4

Search: Search took 0.16 seconds.

  1. Replies
    2
    Views
    57

    Re: Which is a faster conditional check?

    In the example of the OP I would expect both to be exactly the same.

    In both cases they will evaluate the first expression and only go to the next when the first one is false and so on until the...
  2. Re: How do I prevent MSInet.OCX not correctly registered from appearing! HELP

    You could of course use the old faithful command line FTP which requires no additional files installed
  3. Re: how can i display the next month date starting from 1

    That is because you are using a different date format, here in the US it is Month then Day then Year, you simply need to move the month part after the day


    Debug.Print "1/" & Month(DateAdd("m",...
  4. Re: how can i display the next month date starting from 1

    1st day of next month is always going to be 1
    All you need to do is increment the month and set the day to 1

    for example


    Debug.Print Month(DateAdd("m", 1, Now())) & "/1/" & Year(DateAdd("m",...
  5. Re: [RESOLVED] how do i open a exe file in the computer need some help please

    Try it with something that actually supports it, like Word or Excel for example
  6. Replies
    4
    Views
    89

    Re: Need to Loop this

    listindex will never = listcount as the index starts at 0 for the first item where count would be 1. A proper loop for be until listindex=listcount-1

    That said a loop would not make much since...
  7. Re: how to do this during runtime create ( txtbox ) read on

    It really doesn't sound like you need to create any additional textboxes at all.
    Maybe I am missing something but a listview, or a grid or a flex grid could hold the info and you would only need 1...
  8. Replies
    2
    Views
    84

    Re: rretinal scanner

    Yes but it would be pretty hard to create a piece of hardware with VB ;)

    Maybe you should take time to give some detail as to what you actually want to do rather than such a vague question.
    As...
  9. Replies
    2
    Views
    60

    Re: Need to Loop these events

    You defined start and end as string but you say they should be digit so first step is to change that from string to Integer
    If you want to loop something from start to end then you would use a For...
  10. Re: how do i open a exe file in the computer need some help please

    Find file would work but could be extremely slow on some systems. On my system for example it could take 1/2 hour or more and I have a very fast system but with drive space in the xTB range and...
  11. Re: how do i open a exe file in the computer need some help please

    See post #10 for the location and name of the key
    i.e.
    .tvlink
    and
    DefaultIcon
  12. Re: [RESOLVED] how to show a msg only 1 time Via Len(Text)

    Another option that I may likely consider in such a case is not to use a msgbox at all but have a label with the message in red text that becomes visible when the length exceeds 70 and invisible when...
  13. Replies
    3
    Views
    94

    Re: Server Connection

    Well I don't know what you are trying to do really, even after 5 threads the only thing I have gathered is that you are trying to determine if the connection succeeds or not which you had some code...
  14. Replies
    3
    Views
    94

    Re: Server Connection

    Why would you write code like that? The timer ticks, connection is open, code closes the connection and opens it again, that is not a very good idea at all.

    Also why do you keep creating new...
  15. Re: what is the difference between cn.execute and rs.open?

    Yes, you should always close a recordset once you are done with it, regardless of which method you use to open it
  16. Re: how to show a msg only 1 time Via Len(Text)

    Or you could activate the message when they are done typing, either in the lost focus event or in the submit function. No need for a flag in this case.
  17. Re: Coding for entry of data if check box is clicked

    Not quite, while a Yes/No field displays Yes ro No in Access it does not actually hold either of those. What it holds is a logical True or False value which is numeric. 0 is false -1 is true

    If...
  18. Replies
    10
    Views
    174

    Re: Why isnt this working

    Using the RS.AddNew and RS.Update is fine in single user apps but when dealing with multi user apps not so much. I have been down that road before and ended up having to rewrite a bit of code to make...
  19. Re: Coding for entry of data if check box is clicked

    Is the field in the database a Text field that can hold Yes or No or is it a Yes/No field i.e. Boolean if the latter then a different approach is needed.
  20. Re: [RESOLVED] if new process run msgbox get file path and name

    I can't make heads or tails of the question


    I think you need to try and be a bit more coherent
  21. Re: File System Watcher help add the code

    Did you try using something like you have in the changed event?
  22. Re: how to create UserControl with DataSource (adodc datasourse)

    You really should not be using the ADODC at all. Use code instead.

    Datasource is not actually an ADODC. It is a Recordset

    You would not need a user control to do this
  23. Replies
    10
    Views
    174

    Re: Why isnt this working

    As I said before you should not be using Connection as a variable name. It is the internal name of the Object.
    You also should not be trying to open a Recordset here. Use the Execute method to do an...
  24. Replies
    4
    Views
    96

    Re: Do For Loop. ect

    Show the code you are using

    The loop I showed would list every item in the list box
  25. Re: Taskbar is disappeared when BorderStyle = Fixed Dialog

    If you use the Sysinfo control on your form then you can get the workarea top, left, height and width and set your form to these values. This will cause the form to be full screen but not cover the...
  26. Replies
    4
    Views
    96

    Re: Do For Loop. ect

    To loop through a listbox


    For X=0 to List1.Listcount-1
    Debug.Print List1.List(X)
    Next
  27. Re: How To Edit Active Report Design At RUN TIME IN VB6 ?

    I do not have the professional version but from what I read it includes a redistributable report designer that you can add into your program. This allows you to create programs that will allow the...
  28. Re: general question , scanner ,barcode scanner , lazer etc

    Another thing to keep in mind is that not all scanners work the same, so if you in fact need to generate barcodes to be scanned the scanner used can be an important factor as well as the distance you...
  29. Re: Parsing for field does not work for values ending 0

    On another note this part is a bit redundant


    If Not rs.bof And Not rs.eof Then
    Do While Not rs.eof


    There is no need for the If statement there as the loop condition will handle it.
  30. Re: general question , scanner ,barcode scanner , lazer etc

    Yes 3of9 is very popular as is UPC and code 128, PDF417 is also widely used but not to the extent of those others
  31. Re: How To Edit Active Report Design At RUN TIME IN VB6 ?

    Well that depends on which version of Active reports you are using.

    If you are using the standard version then you are going to have to write an interface for the user to be able to make his/her...
  32. Replies
    10
    Views
    174

    Re: Why isnt this working

    One good way to avoid reserved words is to use a common naming convention on your tables and fields such as prefix all table names with tbl and all field names with fld so you end up with...
  33. Replies
    10
    Views
    174

    Re: Why isnt this working

    Well for one thing you do not use a RS to insert data
    You would use the .Execute method of your connection object.

    You should not use Connection as a variable name as that is the actual name of...
  34. Re: general question , scanner ,barcode scanner , lazer etc

    Well some scanners are blue tooth, some are RS232 and most are Keyboard Wedge so to support all of them would require more than one method.
    You can sort of tell if the code works but you will not be...
  35. Replies
    25
    Views
    277

    Re: Adding multiple controls

    You could create the controls through code in a loop if you don't like the copy and paste methods
  36. VS 2012 Re: Acces denied when trying to acces a folder on C drive

    Program files is restricted,

    As a test try turning off UAC and see if it works properly with that off. Odds are that the location combined with UAC is the problem
  37. Replies
    5
    Views
    150

    Re: Web Site Populate Help

    You would have to show us some code
  38. Re: autorun a video inside windows media player?

    You have to add the reference for the scripting object.

    Or I should say you have to to use it like that but that code does not make use of it so not sure why it is even there, that line could be...
  39. Re: Parsing for field does not work for values ending 0

    I don't see any reason why what you have should not work.
    You could try the mid$() function and see if that works better


    rsAppend.Fields("Entity") = Mid$(rs.fields("LocCode").Value,2)
  40. Replies
    25
    Views
    277

    Re: Adding multiple controls

    :o doh

    Yes of course

    btw I have saw this reversal myself in the past but I only remember seeing it when I was working with controls inside frames

    Edit: I just ran several tests here and the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.