Results 1 to 8 of 8

Thread: Visual Basic and Access

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Location
    Orlando, FL, US
    Posts
    11

    Post

    I am trying to do a simple program in which the user enters a location (latitude and longitude)into some textboxes. This information should go into the database and create a table. What I mean is, when the user hits "Save", the info should go into the database and get erased, so that the user can later enter a new location. Is there any way that this can be done? Someone told me that the information can go into a specific place in the database and when the user inputs new information into the textboxes, it will overwrite the previous info., which is what I don't want it to do. Thanks in Advance...

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    It can be done, you just need another field. Something like a sequence number. You can accomplish that with an auto field.

    The rest can be done rather easily with two text boxes, a command button and ADO or DAO coding.

  3. #3
    Member
    Join Date
    Apr 1999
    Location
    Kirkland, WA, USA
    Posts
    40

    Post

    Hi:

    Could you clarify this a little? You say "the user hits save and the data gets erased" Which would make the button confusing to me.

    Also you say you want to create a "table' for every lat/lon entry? Do you mean a record in a table?

    I believe your solution will be very simple (databases are simply places to hold and return data from, and you can do the processes any way you want) but first please give a little more obvious functionality for us to go on.

    -Smith

    ------------------
    http://www.smithvoice.com/vbfun.htm

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    1) Dinamita wants the data to be written to the database and the *form* to be cleared, after the button is pushed, to facillitate more data entry.

    2) Dinamita ( I'd use a pronoun but, unfortunately, American English is a bit short on singular, gender non-specific ones) wants a record for each time the button is pushed.

    3) S/he (see how awkward that is!) has not indicated what should happen to the data once it's entered.

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Location
    Orlando, FL, US
    Posts
    11

    Post

    I would like to make the data to be a log of latitude and longitude, which the user can open later and see (It would basically be a read log once it is in Access). Just in case, it is a He for the pronoun.......

  6. #6
    New Member
    Join Date
    Aug 1999
    Location
    Corry,PA, USA
    Posts
    15

    Post

    You could use a grid to display the data & have a print button to goto access & print off the report.. Would look nicer & be very functional as well..

    ------------------
    ~\*/~ Thank you....

  7. #7

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Location
    Orlando, FL, US
    Posts
    11

    Post

    How can I do that? Is there some code or an example of code that I can use to guide myself in order to do that grid and to print the info out into access???
    Thanks

  8. #8
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178

    Post

    Dinamita,

    Ok this is so simple l caren't believe the email it has generated, send me your email location at [email protected] and l will send back an example project on how to do this, complete with grids and print options.

Posting Permissions

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



Click Here to Expand Forum to Full Width