Results 1 to 3 of 3

Thread: Master/Detail Through ADO

  1. #1

    Thread Starter
    Addicted Member Rohan_Powle's Avatar
    Join Date
    Mar 2000
    Location
    Mumbai,maharashtra.India
    Posts
    173
    I am writting this code which dont seem to be wrong then too a error msg is flashed....I am writting this code to change the child record source depending upon the masters PK.

    the code is
    ----------------
    orditem.ADSH.CommandType = adCmdUnknown
    orditem.ADSH.RecordSource = "select * from ordlotsch where ORDPSNO=" & psno
    orditem.ADSH.Refresh
    -----------------
    for few time it is working properly but then a error is flashed saying Referesh Method of ADODC Failed.....
    after this VB is terminating itself..

    Please help me to solve this problem
    and if u can give me the different Master Detail forms Codes..it will be helpful for me to use in my next projects..

    Thankzz in Advance..
    ___________________
    Rohan(Mumbai,India)

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I'm not a big db person, but how about a DoEvents b4 refreshing? It might settle things down.

    Gl,
    D!m
    Dim

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Have you applied the latest VB Service pack? (currently 4)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width