PC Review


Reply
Thread Tools Rate Thread

Adding records through a form

 
 
MikeB
Guest
Posts: n/a
 
      2nd Nov 2008
Help me get my head around this.

I have a table of Players. I might have to add players, or update
something about them.

My current form is OK, but I don't think it is simple and
straightforward. There is an Add button, that I added using the
Wizard. It clears all the fields and the number field shows (Autonum).

Do I have to press the button again to actually add the record?

If I type into the fields before I press the add button, do I
overwrite the record that I'm currently positioned at?

Why does certain drop-down combobox items not reset when I hit the Add
button? Do I have to add code to an event to rest the combo boxes? In
fact, even if the combobox values display correctly, if I don't
reselect the value in the control, the field in the DB doesn't seem to
update correctly.

Would it make more sense to write a custom button that opens a new
form for adding new records?

Thanks.
 
Reply With Quote
 
 
 
 
Wayne-I-M
Guest
Posts: n/a
 
      2nd Nov 2008
Hi Mike

> Do I have to press the button again to actually add the record?

Yes

> If I type into the fields before I press the add button, do I
> overwrite the record that I'm currently positioned at?

Yes

> Why does certain drop-down combobox items not reset when I hit the Add
> button? Do I have to add code to an event to rest the combo boxes? In
> fact, even if the combobox values display correctly, if I don't
> reselect the value in the control, the field in the DB doesn't seem to
> update correctly.

Don't know - how are you "filling" your combo boxes at the moment. Are they
filter by the record ?
Can you give more details


> Would it make more sense to write a custom button that opens a new
> form for adding new records?

No


--
Wayne
Manchester, England.



"MikeB" wrote:

> Help me get my head around this.
>
> I have a table of Players. I might have to add players, or update
> something about them.
>
> My current form is OK, but I don't think it is simple and
> straightforward. There is an Add button, that I added using the
> Wizard. It clears all the fields and the number field shows (Autonum).
>
> Do I have to press the button again to actually add the record?
>
> If I type into the fields before I press the add button, do I
> overwrite the record that I'm currently positioned at?
>
> Why does certain drop-down combobox items not reset when I hit the Add
> button? Do I have to add code to an event to rest the combo boxes? In
> fact, even if the combobox values display correctly, if I don't
> reselect the value in the control, the field in the DB doesn't seem to
> update correctly.
>
> Would it make more sense to write a custom button that opens a new
> form for adding new records?
>
> Thanks.
>

 
Reply With Quote
 
Wayne-I-M
Guest
Posts: n/a
 
      2nd Nov 2008
> My current form is OK, but I don't think it is simple and
> straightforward. There is an Add button, that I added using the
> Wizard. It clears all the fields and the number field shows (Autonum).

This is a new record

Good idea >>>> Open the form in design view and select the autonumber field
(the ID) open the properties box and in the Visible Row select = NO
You don't need to show the ID (Primary field) to a user. It is ONLY used as
a unique identifier for the record - in most cases :-)

--
Wayne
Manchester, England.



"MikeB" wrote:

> Help me get my head around this.
>
> I have a table of Players. I might have to add players, or update
> something about them.
>
> My current form is OK, but I don't think it is simple and
> straightforward. There is an Add button, that I added using the
> Wizard. It clears all the fields and the number field shows (Autonum).
>
> Do I have to press the button again to actually add the record?
>
> If I type into the fields before I press the add button, do I
> overwrite the record that I'm currently positioned at?
>
> Why does certain drop-down combobox items not reset when I hit the Add
> button? Do I have to add code to an event to rest the combo boxes? In
> fact, even if the combobox values display correctly, if I don't
> reselect the value in the control, the field in the DB doesn't seem to
> update correctly.
>
> Would it make more sense to write a custom button that opens a new
> form for adding new records?
>
> Thanks.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding records to a sub form csumb Microsoft Access Forms 2 11th Sep 2008 04:59 PM
adding records to a sub form csumb Microsoft Access 2 9th Sep 2008 07:00 PM
Adding records with a form Mira Microsoft Access Forms 2 27th May 2006 08:05 PM
Form used for adding records =?Utf-8?B?ajFlZ2dlcnQ=?= Microsoft Access Forms 2 12th Jul 2005 04:08 PM
Adding records with a form Sara Microsoft Access Form Coding 4 16th Aug 2004 09:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:15 AM.