Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7894983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:31:55+00:00 2026-06-03T07:31:55+00:00

I have a MS Access application and have problem to find a return type

  • 0

I have a MS Access application and have problem to find a return type of function. Is there a way to find return type of object? I have type mismatch error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:31:57+00:00Added an answer on June 3, 2026 at 7:31 am

    If it is a built-in function, look at the Access help topic.

    If it is a user-defined function, examine its definition.

    If you can do neither, use the TypeName() function to tell you the data type returned by YourFunction().

    Debug.Print TypeName(YourFunction())
    

    If YourFunction() returns a variant, TypeName() will tell you the variant subtype.

    Heinzi suggested VarType() instead of TypeName(). I habitually reach for TypeName() first simply because it’s quicker for me, and I’m seldom concerned with its limitations. However I agree with Heinzi; VarType() is better.

    JP. offered two other useful suggestions. First, you can create a simple procedure which declares a Variant variable and assign your function’s return value to the variable. Then add a temporary break point (with F9) on the first Debug.Print line, run the procedure, use F8 to move through it line by line, and monitor the variable’s value in the Locals Window. (Open that window from the VB editor’s main menu. View -> Locals Window)

    Public Sub examine_YourFunction()
        Dim varFoo As Variant
        Debug.Print "start"
        varFoo = YourFunction()
        Debug.Print varFoo
    End Sub
    

    And second, for built-in functions that have a return type, you can take advantage of Intellisense to see the return type as you are typing the function name and/or the parameters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an 'access denied' problem on an ASP.NET web application, where the user
I have just started using the Data Access Application Block from microsoft. There are
I have problem I cannot find the cause. I have menu and application crashes
I have access to a 3rd party PropertyGrid within my application (C#. ,Net v2).
My application requires that I have access to the file system. Regardless if the
We have an application deployed on tomcat. To access application we are using apache
In an application we are developing, I have access to a database table which
I have created an MS Access 2003 application, set up as a split front-end/back-end
I have an application in Access 2003 that I am working on. In it,
We have a job management application running (Access) with the database in SQL Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.