+ Reply to Thread
Results 1 to 3 of 3

Need help with VBA passing an argument

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Need help with VBA passing an argument

    I need help on passing a "person_id" from the application into VBA code below, please help: Here is what I am using but not working because my argument is not correct.
    Thanks!!

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by 6StringJazzer; 07-17-2014 at 08:04 PM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Need help with VBA passing an argument

    Hi, airbus320,

    as you are trying to create a string shouldnīt you be using & instead of +? And I would expect a Personal ID not to be empty if thatīs the primary key (just suggesting).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need help with VBA passing an argument

    Thanks Holger. Yes I guess, but I ma not sure how to set it up? It would be great if some one know how to set up my parameters and pass it on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] ByRef argument type mismatch / Passing array as a function argument
    By pzling in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2012, 06:23 PM
  2. Passing an array as an argument
    By johncassell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2009, 10:32 AM
  3. Passing a UDF as an argument to a UDF
    By puff in forum Excel General
    Replies: 3
    Last Post: 02-23-2006, 05:50 PM
  4. problem passing an argument to a sub
    By natanz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-16-2005, 04:05 PM
  5. Passing argument to another Sub
    By Roman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2005, 06:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1