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  

Order Form - Issue with Fields set up as combos



 
 
Thread Tools Display Modes
  #1  
Old May 16th, 2010, 09:22 PM posted to microsoft.public.access.forms
DianeC[_3_]
external usenet poster
 
Posts: 1
Default Order Form - Issue with Fields set up as combos

Hi

Hope someone can help me. I'm trying to set up an order from in Access 2003
and being very rusty have been using a Microsoft template.

I am setting up an employee ID box that I want to show the employee name:

I have a qry (Expr1: [LastName] & "," & [FirstName]) that has added the first
and last name together and it appears on the form in the correct format but I
immediately get an error message : The value you added isn't valid for this
field. I have set up the qry against the * not employee ID.

The PK is Employee ID.

I have the same issue with Customer ID.

Am sure this is something simple that I have overlooked.

Thanks
Diane

  #2  
Old May 16th, 2010, 11:19 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Order Form - Issue with Fields set up as combos

On Sun, 16 May 2010 20:22:31 GMT, "DianeC" u60111@uwe wrote:

Hi

Hope someone can help me. I'm trying to set up an order from in Access 2003
and being very rusty have been using a Microsoft template.

I am setting up an employee ID box that I want to show the employee name:

I have a qry (Expr1: [LastName] & "," & [FirstName]) that has added the first
and last name together and it appears on the form in the correct format but I
immediately get an error message : The value you added isn't valid for this
field. I have set up the qry against the * not employee ID.

The PK is Employee ID.

I have the same issue with Customer ID.

Am sure this is something simple that I have overlooked.

Thanks
Diane


Bear in mind that the ID is almost surely a Number, and "Smith, David" is not
a number and will not match an ID, and cannot be stored in an ID. This is true
even if you've fallen victim to Microsoft's confusing "Lookup Field" so-called
datatype; this will *conceal* the actual numeric content of the ID field
behind a combo box displaying a name.

Please open your query in SQL view and post the SQL text here. My guess is
that you're trying to store the text into a number field but that's not clear.
For one thing, you can't apply a criterion to * so I'm not at all sure what
you mean!
--

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 11:17 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.