Results 1 to 4 of 4
  1. #1
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480

    My syntax is Phooey.. Take a look

    Alright, I am trying to see if the value of 2 columns on a record exist on a webpage... It is giving me syntax errors even though I have used this method in the past.


    This line is not working
    Code:
    If InStr(oIe.Document.all.tags("div").Item(29).innertext, r![f13] & " " & r![f14] > 0 Then
    This code below works fine, it tells me if the value of a textbox on a form is on the webpage...
    Code:
    If InStr(oIe.Document.all.tags("div").Item(29).innertext, Forms("frmmainnew").txtaddUser1) > 0 Then
    So, the top line of code is not working, the bottom one is... Can anyone steer me in the right direction here? Any advice is appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    You probably want to close off the quotes of the InStr() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    HAHA, that was it. Thank you... I only had one cup of coffee today and my grey matter has the consistency of pudding. Rep Added.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with syntax
    By Gizmodo in forum Queries
    Replies: 4
    Last Post: 11-16-2012, 01:45 PM
  2. Help with syntax
    By accesskid in forum Forms
    Replies: 3
    Last Post: 06-02-2011, 05:14 AM
  3. SQL syntax
    By jgelpi16 in forum Programming
    Replies: 2
    Last Post: 05-04-2011, 08:32 AM
  4. Help with syntax
    By GWB in forum Queries
    Replies: 4
    Last Post: 01-26-2011, 03:33 PM
  5. Incomplete Syntax Clause (syntax error)
    By ajetrumpet in forum Programming
    Replies: 4
    Last Post: 09-11-2010, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums