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

  • Home
  • SEARCH
  • 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 393029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:13:02+00:00 2026-05-12T16:13:02+00:00

So I have this form that has tons of text boxes, combo boxes, etc.

  • 0

So I have this form that has tons of text boxes, combo boxes, etc. There is VB in the form’s module that check to see if there are duplicates, and then run a few update queries to save the information in to tables. All that works great.

My question is what VB method can I use in this forms module to take information from all these objects (txt, cmb, etc) and output/save it into a text file?

I would just use as an example a form with the following three text boxes:

Text1 - String
Text2 - Date
Text3 - True/False

I know the vb for adding this to the database tables, but I am looking to be able to save the information in a text file, and then use the SendObject method to allow for these text files to be emailed from the field to the hq, and then placed in a larger db.

The outlook sendobject I think I have a pretty good handle on that portion, just need to figure out how to create a text file with the data in it. Thanks for the help!

  • 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-05-12T16:13:03+00:00Added an answer on May 12, 2026 at 4:13 pm

    Are your controls, textboxes, comboboxes, etc, bounded to a recordset? In this case, wouldn’t you prefer to send related table records to whoever or whatever is concerned instead of collecting control’s values throught text file? I mean this could be done, but I really find it weird!

    EDIT: following @galleySlave comments, one idea would then be to write code similar to this one:

    Dim m_dataInForm as string, _
        m_control as control
    
    m_dataInForm = "Page Header"
    for each m_control in screen.activeForm.section(1)
        m_dataInForm = m_dataInForm & m_control.caption & ": " & m_control.value & vbCr & vbLf
    Next m_control
    m_dataInForm = "Details"
    for each m_control in screen.activeForm.section(o)
        m_dataInForm = m_dataInForm & m_control.caption & ": " & m_control.value & vbCr & vbLf
    Next m_control
    m_dataInForm = "Page footer"
    for each m_control in screen.activeForm.section(2)
        m_dataInForm = m_dataInForm & m_control.caption & ": " & m_control.value & vbCr & vbLf
    Next m_control
    

    The m_dataInForm will then contain all data title (.caption) and value (.value). You might need some extra code to avoid errors on controls that do not have caption (like lines) or values (like labels) and/or to get the value in the expected format (‘Yes’ instead of -1). This will costs you a few extra instructions such as

    SELECT CASE m_control.controlType
    

    You’ll then be able to send the m_dataInForm value either in a text message or save it as a file somewhere.

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

Sidebar

Ask A Question

Stats

  • Questions 255k
  • Answers 255k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Using nothing but Bash: $ var="eth0 eth1 bond0" $ [[… May 13, 2026 at 10:21 am
  • Editorial Team
    Editorial Team added an answer Yes but it is painful. Below is a "lambda function… May 13, 2026 at 10:21 am
  • Editorial Team
    Editorial Team added an answer You could break each bit into its components and build… May 13, 2026 at 10:21 am

Related Questions

I'm looking for a library that has functionality similar to Perl's WWW::Mechanize , but
I have a simple cakephp form WITH validation that submits to a database. It
I have created an MS Access 2003 application, set up as a split front-end/back-end
I am experiencing a weirdest thing for the last couple of days. I found

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.