Results 1 to 3 of 3
  1. #1
    ksmith is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    59

    Calling a Function From A Form.

    I have created a module with a function that capitalizes the third letter in words that begin with ‘Mc’. I have a table with the city field all uppercase letters. I created an update query that takes the field and correctly changes it. I was wondering how you would go about tying this function to the textbox on the input form. So, if a user incorrectly enters ‘mccoy’ in the City Field the function would be called and would automatically change it to ‘McCoy’.

    Thanks in advance for any help,


    KSmith

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,538
    Something like:
    Me.ActiveControl = YourFunction()
    in the After Update event of the text box.
    What is your function called and what arguments does it accept?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    ksmith is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    59
    Thanks Bob for your reply, I'm not at a point where I can work on it now. I will try what you suggested and post back.

    Thanks again,
    KSmith

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

Similar Threads

  1. Calling a common network file from form
    By lucy1216 in forum Forms
    Replies: 1
    Last Post: 04-23-2012, 09:07 AM
  2. Calling up another form - Not Working
    By Buakaw in forum Forms
    Replies: 7
    Last Post: 02-26-2011, 06:49 AM
  3. Calling A Module Function To Open A Form
    By orcinus in forum Modules
    Replies: 3
    Last Post: 09-29-2010, 04:43 PM
  4. calling function
    By ManvinderKaur in forum Programming
    Replies: 3
    Last Post: 07-22-2010, 10:53 PM
  5. Calling a function and returning a value
    By 3dmgirl in forum Programming
    Replies: 0
    Last Post: 04-23-2007, 02:20 PM

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