Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

AddNew Method.....Problem

AddNew Method.....Problem

AddNew Method.....Problem

Does anybody know how to add a value from a text box within an AddNew Method.

My code looks like this:
    With component_dev
        !Information = Me![textBoxValue]
    End With
It doesn't seem to work though.  Anybody got some suggestions.  thanks

RE: AddNew Method.....Problem

Good morning!  Sorry, but I need a bit more information.  Is component_dev a recordset?  If so, does it have a field called Information?  What error are you getting?  Have you tried setting a breakpoint and stepping through the code to find out where the error is occuring?

Sorry to pound you with questions, but with the answers we should be able to get this to work.


RE: AddNew Method.....Problem

Hi Kathryn,

Thanks for your help.  Yes - component_dev is the recordset and Information is a field in the recordset.  The problem is I'm not even sure what I want the code to do is possible.  Let me explain.  Do you know how when you create a new record in a table with the programmed "Add New Record" button in access, the new row has been created and as you type in the textboxes the fields in the recordset are populated.  Well what I want to do is add rows to two tables at the same time, so that is why I have added this code with the "New Record" button.  What I think is happening to the code is a new row is created in my second table but when it is looking at the value of the textbox it sees there is nothing in there, so it gives me a null value error message.  Sorry if I confused you right now, but I was thinking about the problem yesterday.  If you have any input though, I'd really appreciate it.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close