A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

task being updated on different key?



 
 
Thread Tools Display Modes
  #1  
Old October 20th, 2009, 03:18 PM posted to microsoft.public.access.forms
JR
external usenet poster
 
Posts: 234
Default task being updated on different key?

I am designing a form that uses a combo box to look up or add a task.

There are only two columns in the table: "Key" (auto number) and "tasks"
(text)

When a task is selected from the combo box (or the title of a new task is
entered), it somehow winds up replacing whatever task # 1 was and task #1
disappears.

How do I prevent this from happening?

I need employees to be able to select the task they are working on and enter
hours worked.

Thanks,
JR


  #2  
Old October 20th, 2009, 04:07 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default task being updated on different key?

Apparently you did not bind the combo to a field in your table so that the
selection is stored.

--
Build a little, test a little.


"JR" wrote:

I am designing a form that uses a combo box to look up or add a task.

There are only two columns in the table: "Key" (auto number) and "tasks"
(text)

When a task is selected from the combo box (or the title of a new task is
entered), it somehow winds up replacing whatever task # 1 was and task #1
disappears.

How do I prevent this from happening?

I need employees to be able to select the task they are working on and enter
hours worked.

Thanks,
JR


  #3  
Old October 20th, 2009, 06:50 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default task being updated on different key?

On Tue, 20 Oct 2009 07:18:01 -0700, JR wrote:

I am designing a form that uses a combo box to look up or add a task.

There are only two columns in the table: "Key" (auto number) and "tasks"
(text)

When a task is selected from the combo box (or the title of a new task is
entered), it somehow winds up replacing whatever task # 1 was and task #1
disappears.

How do I prevent this from happening?

I need employees to be able to select the task they are working on and enter
hours worked.

Thanks,
JR


This combo box needs to be "Unbound" - it should have a blank Control Source
property in forms design view. My guess is that you have it bound to the task
field in the table; if so, whatever the user selects will update that field.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.