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 8236401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:07:23+00:00 2026-06-07T19:07:23+00:00

Is it possible to create a form in MS Access 2007 that is not

  • 0

Is it possible to create a form in MS Access 2007 that is not dependent on a recordset? I want to create a form that would just handle simple calculations, but would not rely on any data from the database.

This is the code I’ve tried to use, but when I run it I get a compile error “Method or data member not found.”

Private Sub btnCalc_Click()
Dim TotalCost As Integer
Dim DisposalCost As Integer
Dim CostRatio As Integer
TotalCost = txtTotalCost.Text
DisposalCost = txtDisposalCost.Text
CostRatio = TotalCost / DisposalCost
lblCostRatio.Text = CostRatio
End Sub

Is there something wrong with my code, or do I need to just create a winform to handle this?

  • 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-07T19:07:25+00:00Added an answer on June 7, 2026 at 7:07 pm

    Yes, it is perfectly possible. Do not refer to the .text property, the text property is only available when a control has focus. if you must use a property – it is not required – use .value.

    For labels, you do indeed need the .caption property.

    There are advantages in using a textbox for the answer, because you can set it to a function or a calculation. For example, you can set the control source to:

    = txtText1 / txtText2
    

    You can prevent the results textbox from being edited with the locked and / or enabled properties. To ensure that the calculations is performed, you will need to set the format property to a number or currency format.

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

Sidebar

Related Questions

I am trying to create a button on my access form that allows for
I am trying to create a form in Microsoft Access that has 2 ComboBoxes.
Is it possible to create invisible form fields in an NSIS installer? I'm using
Using PDF, is it possible to create a single form element with multiple fields
Is it possible to create a composite key in sql 2000 of the form:
Is It possible to create HTML5 Web Socket by use of ASP.NET/Web Form?
Possible Duplicate: Create event handler for OnScroll for web browser control I would like
So I have a form that I want the user to use to update
I can create a form with Django that has a mysql background. I wonder
Possible Duplicate: How to access a variable in a PHP class that is set

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.