Search:

Type: Posts; User: BestS

Page 1 of 6 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    692

    Re: Access database filter

    SELECT * FROM table WHERE Month([date field])=1 AND YEAR([date field])=2007
  2. Replies
    6
    Views
    1,097

    Re: Run-timer error '94' - Invalid use if NULL

    in SQL ...WHERE Field IS NOT NULL

    in VB
    If not isnull(rs!field) then ...
  3. Replies
    8
    Views
    759

    Re: Error when Updating Database

    There are several possible reasons.
    Are you using a recordset that gets data from than one table and then you try to delete with rs.delete method?
    Please paste the line of code that fires the...
  4. Replies
    6
    Views
    1,668

    Re: printing an access table in vb6

    Here is a good link with example. Good luck :)

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconpartsofdatareport.asp
  5. Replies
    6
    Views
    1,668

    Re: printing an access table in vb6

    On the project explorer right click -> Add -> DataReport.
    It works with recordsets
    I'll give you an example.
  6. Replies
    6
    Views
    1,668

    Re: printing an access table in vb6

    With DataReport for example.
  7. Thread: Make ZIP archive

    by BestS
    Replies
    2
    Views
    487

    Make ZIP archive

    Hi all!
    How can I make a ZIP archive? I have my database, I make BackUp's but I want to compress the database also.
    I've been searching a lot but could not actually find a good example.

    Good...
  8. Replies
    1
    Views
    524

    Re: Data reports, strange problems with fields

    If the property of the TextBox in the DataReport "CanGrow" is set to TRUE then make it FALSE.
    And also you should make the TextBox width to be able to show the longest string in your database.
  9. Replies
    2
    Views
    530

    Re: Visual Studio .NET

    Hm, if you have Visual Studio installed then just find the PROJECT file and double click on it... (.vbp) or something like SOLUTION1 ...
  10. Thread: data report

    by BestS
    Replies
    1
    Views
    525

    Re: data report

    What is wrong with the textboxes
    put one and you'll get all name listed, it looks just like label...
  11. Replies
    10
    Views
    527

    Re: icons doesnt look like xp

    sorry, did not have enough time to be online and answer you soon.
    But this does not look like a VB or DataBase problem it is more like WINDOWS.
    If the program is not XP Style then tell us, are the...
  12. Re: Populate a DataGrid based on a combo box selection

    I AM LEAVING NOW. Wish you GOOD LUCK!
    ;)
  13. Re: Populate a DataGrid based on a combo box selection

    And REMOVE that CLOSECONN
    You use your recordset, but you close the connection, that is not correct
  14. Thread: Counting records

    by BestS
    Replies
    1
    Views
    358

    Re: Counting records

    SELECT Count(Id) FROM Table WHERE DateCreated BETWEEN #1.07.2006# AND #07.07.2006#
  15. Replies
    1
    Views
    336

    Re: pls help! SQL problem........

    SELECT Name, Count(Name) as cntNames FROM tblVotes GROUP BY Name
    That's it...
  16. Replies
    2
    Views
    1,599

    Re: [RESOLVED] Compile error

    Yeah ;)
  17. Thread: hlp

    by BestS
    Replies
    3
    Views
    490

    Poll: Re: hlp

    We need more info, where is the error, what is the error exactly
  18. Thread: Database Backup

    by BestS
    Replies
    3
    Views
    534

    Re: Database Backup

    try FileCopy...
    first close any connections to the .MDB then
    FileCopy "Your.Mdb", "C:\BackUp\Your1.mdb"
  19. Re: Populate a DataGrid based on a combo box selection

    Here is a way to return all result similar to the entered in the SearchString.
    SORRY if I uploaded the wrong project before,
    HERE IS THE NEW ONE NOW, take a look, I just made it.
  20. Re: Populate a DataGrid based on a combo box selection

    As far as I see you need to search by more than one criteria? Is that right?
    You need more that one result that replies to the SEARCH STRING entered by the user?
  21. Re: Populate a DataGrid based on a combo box selection

    Here it is...
    (Have in mind that when user select a line from the ComboBox then it points to exactly one line in the database, if you want all of them with having name
    "Peter" for instance, that...
  22. Re: Populate a DataGrid based on a combo box selection

    I'll make a new project for you, that does what you need.
    Sorry I could not connect to your database, but if get the idea... you'll succeed
  23. Re: Populate a DataGrid based on a combo box selection

    You have ODBS that I don't and wasn't able to test the program, but here it is...
    Good luck!
  24. Re: Populate a DataGrid based on a combo box selection

    I finished work, so I will see it tommorow.
    Good night!
  25. Replies
    9
    Views
    509

    Re: Update sql database from txtfields

    Thanks I'll remember that ! :thumb:
  26. Re: Populate a DataGrid based on a combo box selection

    When you go to ADVANCED you will notice down a button "MANAGE ATTACHMENTS" you will browse then for your zip...
  27. Replies
    9
    Views
    509

    Re: Update sql database from txtfields

    If it is reserved you may try brackets
    sql = "SELECT cname, cimage, cid, cdirec FROM [cat]"
  28. Re: Populate a DataGrid based on a combo box selection

    WHAT IS THIS?
    (rst.Open) Just this?
    Where did you set which connection to use or what is the source? Where are the locktypes?

    rst.Open SQL,Connection, adOpen..., adLock
    use this and you won't...
  29. Re: Populate a DataGrid based on a combo box selection

    :'( :'( :'( I can not belive it ...
  30. Re: Populate a DataGrid based on a combo box selection

    And post your code again I wanna see it all.
  31. Re: Populate a DataGrid based on a combo box selection

    BUT Of cource you will :(
    Do all these spets before this line
    Temp$ = rst.Fields("User").Value

    Dim rs as adodb.recordset
    set rs = new adodb.recordset
    rs.open......
    if not rs.Eof then temp$ =...
  32. Re: Populate a DataGrid based on a combo box selection

    And another thing I see.
    You first set the DataGrid.DataSource and THEN you filter the RecordSet...
    After the .FILTER
    put the line

    Set DataGrid.DataSource = Nothing
    SET DataGrid.DataSource=...
  33. Re: Populate a DataGrid based on a combo box selection

    So where is the problem and what is the question?
    I don't get it? What is the result you get? You do not get the right data on the DataGrid or you get error or you need to select more than one...
  34. Re: Populate a DataGrid based on a combo box selection

    Ok let's make it right.
    If I understand correctly you need something like:

    rst.Filter=""
    rst.Filter = ("Field1<" & Date & "Field2='" & ComboBox.text & "'")
    DataGrid.DataSource = Rst.DataSource
  35. Replies
    5
    Views
    780

    Re: save data from listbox

    Here is code that writes to TXT file:
    Public Sub WriteAll(Text As String, filename As String, _
    Optional AppendMode As Boolean)
    Dim fnum As Integer, isOpen As Boolean
    On Error GoTo...
  36. Replies
    5
    Views
    780

    Re: save data from listbox

    Great code
    I bet it works without any edit :) ;)
    Just kidding, because it does not give enough info.
    You want to save all the data from a LISTBOX to a FILE ?
  37. Re: Algorithm to limit number of consecutive characters

    Wow that's a long one...I can not even get it all right now...
    I gave just an idea that came to my mind:
    stplit the string letter by letter and then swap them, but you already SO...
  38. Re: Problem installing VS 6.0 MSCHRT20.OCX

    THAT WAS THE ONLY PROBLEM si_the_geek :(
    I can not install any service pack because of this error.
    Vb was working but my project not entirely without SP6.

    Anyway...I wasted enough time, so I...
  39. Re: Algorithm to limit number of consecutive characters

    Let's try something:
    Letter by letter we move through the string.
    aaaabaaaab
    First letter is "a" so we store it in a variable
    (dim strCheck as string, strAll as string)
    strAll = "aaaabaaaab"
    ...
  40. Re: Populate a DataGrid based on a combo box selection

    The first thing I see is that you filter your recordset in one SUB and then you use another recordset with the same name and may you expect that it is still filtered?

    If so USE declare your...
Results 1 to 40 of 226
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width