Results 1 to 3 of 3

Thread: [RESOLVED] run-time error in query

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Location
    philippines
    Posts
    98

    Resolved [RESOLVED] run-time error in query

    hi.. i don't know how to fix this error..my code is:
    Adodc4.RecordSource = "select * from replenishment_details where replenishment_no like ='" & replenishment_num & "' and policy_type = '" & ptype & "'"
    Adodc4.Refresh

    replenishment_num and ptype are string data type..everytime i run it, it has this error






    can you help me modify my code? something is wrong ..

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: run-time error in query

    Try this one
    VB Code:
    1. Adodc4.RecordSource = "select * from replenishment_details where replenishment_no like  '" & replenishment_num & "' and policy_type = '" & ptype & "'"
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Location
    philippines
    Posts
    98

    Re: run-time error in query

    thanks..hehehe

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