Search:

Type: Posts; User: Zvoni

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds; generated 18 minute(s) ago.

  1. Replies
    2
    Views
    176

    Re: Error 3197 with dao and SQL. Server

    Don't use a SELECT-Recordset to update stuff
    Untested


    db2.Execute("UPDATE CLIENTI SET RAG_SOC='PIPPO' WHERE CODICE='100'", dbFailOnError)
  2. Replies
    3,459
    Views
    640,018

    Re: What song are you listening to right now?

    "Fool of a Took" :D
  3. Re: SQL Server - requesting help debugging this stored procedure

    Yes, your Problem are the NULL's

    Question: In your Data, is it possible, that both "Control"-Fields are NULL at the same time? Or that both are NOT NULL? Or MUST one of them be NOT NULL?
    Because...
  4. Re: Getting VB6 help from ChatGPT (something for those of us with lots of easy questi

    I'm calling your "only advantage of a dictionary" and raise "you have to set an error-trap for the collection in case you add a key which already exists in the collection" :D
    and i'm going all in...
  5. Re: RC6 error adding item to a cCollection with an empty string as a key (vb6 col can

    You sure?
    I think to remember, that the Collection-Class of VB6 is a double-linked-List, and a binary tree only makes sense if the user DOES provide a Key, and wants to access the collection-items...
  6. Re: Getting VB6 help from ChatGPT (something for those of us with lots of easy questi

    Well, adding to it:
    2D-Lookup-Array comes to mind immediatly (no ext. references needed, either):
    1st Dimension: Name of Month
    2nd Dimension: Season


    Dim LookupArray(1 to 12, 1 To 2) As String...
  7. Replies
    3,459
    Views
    640,018

    Re: What song are you listening to right now?

    Rediscovered this one recently


    https://www.youtube.com/watch?v=q8ir8rVl2Z4
  8. Re: how to show a string value in a double variable

    CultureInfo missing as second argument in ToString?
  9. Re: how to show a string value in a double variable

    What Type is rs.Zins?
  10. Re: how to show a string value in a double variable

    You don't. A double is a numeric float value. Period.
  11. Re: Populating textboxes with appointments from database

    Because you are overwriting it
    (untested)


    If text1(Day(Rs!Cal_ID)).Text = "" Then
    text1(Day(Rs!Cal_ID)).Text = "Period" ...blablablabla
    Else
    text1(Day(Rs!Cal_ID)).Text =...
  12. Re: Populating textboxes with appointments from database

    You should know your own Data.
    "2" refers to Afternoon

    EDIT: Here's an updated version of how i would do it
    https://www.db-fiddle.com/f/gbu7v9msesk9qxBLQKSEtU/1
  13. Re: Populating textboxes with appointments from database

    btw: Which DBMS are you using?
    My Example was for SQLite

    EDIT: And your sample is wrong.
    According to your INSERTS, you don't have any appointments in the evening
  14. Re: Populating textboxes with appointments from database

    1) You don't need to separate Slot_time and Worktime. Those belong together in one Table
    2) You need a "Calendar-Table". You will have days where there is no appointment set, yet
    3) You need a Left...
  15. Re: What is the best way to find a String without space ?

    Didn‘t we have that some weeks ago, where I presented a Regex solution?
  16. Replies
    4
    Views
    302

    Re: Update only last record

    …. and nevermind using a loop in the frontend if you can let sql do it.

    that is: if it’s not Access…
  17. Re: What does a dupe and 'using' mean in an IDL interface def?

    At a guess: to avoid „versioning“ of the interface.
    a once defined interface should stay immutable, so in your case: if user wants to access GetMetrics in Font1, return the „original“
  18. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    And that’s the problem: there is none, since you sum up everything
    this is not making any sense whatsoever

    that said: i‘m on vacation the next 10 days
  19. Replies
    95
    Views
    3,915

    Re: new project - DB help needed please

    I‘m out. Wanted to give him another chance, but he should know by now, that
    “doesn’t work“ is not an error message or a problem description
  20. Replies
    95
    Views
    3,915

    Re: new project - DB help needed please

    whipped up a small sample
    There is also a Query inside
  21. Replies
    95
    Views
    3,915

    Re: new project - DB help needed please

    Just looking at his image above, why has noone told OP that his setup is wrong?
    and even his explanations are crystal clear: it’s a „1:m“ scenario

    master table GENERATIONS
    1. Detail table SETS...
  22. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    if you want to see totalpayment just leave out the WHERE…. =0 of your query (not mine)
  23. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    Leave out the left join, remove tbl_student, and select directly FROM SP

    i‘m currently out of office and preparing for a 10 day vacation.
    no idea if i‘ll be able to look at it

    EDIT: Found it....
  24. Replies
    21
    Views
    1,015

    Re: GUID/CLSID/UUID Comparison API?

    Really?
    I was under the impression, only "Objects" (Classes) can have Properties
  25. Replies
    21
    Views
    1,015

    Re: GUID/CLSID/UUID Comparison API?

    Color me surprised.
    Since when can you do a
    Private Property Get in a BAS-Module?!?!?!
  26. Replies
    95
    Views
    3,915

    Re: new project - DB help needed please

    More or less my question, too.
    What defines which 4 cards to be a set?

    EDIT: Coming from a Poker-Cards-Deck:
    You need a qualifier which defines which cards belong to which set
    1) "i have all 4...
  27. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    OK, i did a Test with my Data, and added Adam Sandler to Physics with Steven Spielberg (duplicate Subject, but different teacher).
    Returns correct Sum

    Same with teacher.
    So no idea what you're...
  28. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    You do realize that in your post you’re talking about teachers, but the query is for students?
  29. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    not possible.
    how do you want to get the fully paid teachers, when you want the SUM across teachers?
    same with students.

    this will only work, if you ignore teachers/students to receive a total...
  30. Re: set timer for a excel spread sheet using a variable for the time value

    TimeValue expects a (quoted?) Time-String
  31. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    OK, got a few minutes to look at it

    Students

    The first query above returns this (for the Values i have)



    Student
    SubjectName
  32. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    Will be thursday, since i‘m traveling the next two days
  33. Re: Parsing a String to Obtain a Discontinuous Print Range

    Did you uncomment the green lines?
    And you have to pass a String-Variable as the second Argument (it's byref) for TokenizePages
  34. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    ?!?!?!?!


    WITH
    SC AS (SELECT SC.Class_ID, SUM(COALESCE(SC.Price, S.SubjectPrice)*SC.NumOfSessions) As TotalPrice,
    TS.TeacherPercentage, SUM(SC.NumOfSessions) As...
  35. Replies
    23
    Views
    872

    Re: [RESOLVED] Listview loop

    Uh.... wrong.....
    It's called a decision-tree.
    We do it pretty much every second/minute of our life

    "If it rains Then take Umbrella with me Else a Coat is enough"

    Computers (and in that way:...
  36. Replies
    23
    Views
    872

    Re: [RESOLVED] Listview loop

    How do you figure that????!?
  37. Re: Parsing a String to Obtain a Discontinuous Print Range

    well, in that case:
    you know what valid "input-characters" are: digits and "delimiters"
    e.g. you only want to support two valid delimiters: "-" and ","
    I'd probably throw the "input-String" at...
  38. Replies
    130
    Views
    8,253

    Re: Another complicated query but perhaps possible

    WITH
    TR AS (SELECT SC.ID, SC.Student_ID, COALESCE(SC.Price, S.SubjectPrice) AS SubjectPrice,
    S.SName As SubjectName, TE.TName As TeacherName, SC.NumOfSessions,
    ...
  39. Re: Parsing a String to Obtain a Discontinuous Print Range

    I'll add to this:
    This would translate as "valid": 1-5,9-7 (Note 9 left of 7)

    But how to proceed from here?
    Print 1,2,3,4,5 (in that order), and then?
    print 9,8,7 or re-sort to 7,8,9?
    ...
  40. Replies
    23
    Views
    872

    Re: [RESOLVED] Listview loop

    But that's exactly what tg is alluding to:
    Your drier (probably) has a "beeper" --> Drier.RaiseEventBeeper("Done")
    The question is: Is your Frontend (yourself) subscribed to this event (aka are you...
Results 1 to 40 of 494
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width