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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Edit textbox



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2010, 01:08 AM posted to microsoft.public.access
GeoffK
external usenet poster
 
Posts: 12
Default Edit textbox

Hi,

I have textbox that is bound to a field "Task" the data is imported from an
Excel worksheet.
The problem is that the imported data varies dependant on who entered it.
For example: Service, ServiceCall, replace connector, repair cable.

I require a field that would display a constant value i.e. "Service Call"

For each category (Service Calls, Installations, etc) there is mainly 4
variations that are recieved, I have no control over this data input as it is
generated by the 2 companies that I sub-contract to.


Could somebody offer some help.

Regards
GeoffK

  #3  
Old April 26th, 2010, 01:55 AM posted to microsoft.public.access
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Edit textbox

Try the following Update Query:

UPDATE tblImport SET tblImport.Task = "Service Call"
WHERE (((tblImport.Task) In ("Service","ServiceCall","replace
connector","repair cable")));

This assumes your rable name is tblImport. You will need to run an Update
query for each of the categories that you have.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"GeoffK" wrote in message
...
Hi,

I have textbox that is bound to a field "Task" the data is imported from
an
Excel worksheet.
The problem is that the imported data varies dependant on who entered it.
For example: Service, ServiceCall, replace connector, repair cable.

I require a field that would display a constant value i.e. "Service Call"

For each category (Service Calls, Installations, etc) there is mainly 4
variations that are recieved, I have no control over this data input as it
is
generated by the 2 companies that I sub-contract to.


Could somebody offer some help.

Regards
GeoffK



  #4  
Old April 26th, 2010, 03:59 AM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Edit textbox

On Sun, 25 Apr 2010 17:08:01 -0700, GeoffK
wrote:

Hi,

I have textbox that is bound to a field "Task" the data is imported from an
Excel worksheet.
The problem is that the imported data varies dependant on who entered it.
For example: Service, ServiceCall, replace connector, repair cable.

I require a field that would display a constant value i.e. "Service Call"


The suggested update queries will work but... how "garbagy" is this data?
Might you also have "Service Call", "Fix cable", "Replace connector and fix
cable", or other kinds of things you'll get from unconstrained freeform input?
--

John W. Vinson [MVP]
  #5  
Old April 26th, 2010, 04:31 AM posted to microsoft.public.access
GeoffK
external usenet poster
 
Posts: 12
Default Edit textbox

Arvin & Steve

Thanks for your replies, I have this working fine.

GeoffK

"Arvin Meyer [MVP]" wrote:

Try the following Update Query:

UPDATE tblImport SET tblImport.Task = "Service Call"
WHERE (((tblImport.Task) In ("Service","ServiceCall","replace
connector","repair cable")));

This assumes your rable name is tblImport. You will need to run an Update
query for each of the categories that you have.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"GeoffK" wrote in message
...
Hi,

I have textbox that is bound to a field "Task" the data is imported from
an
Excel worksheet.
The problem is that the imported data varies dependant on who entered it.
For example: Service, ServiceCall, replace connector, repair cable.

I require a field that would display a constant value i.e. "Service Call"

For each category (Service Calls, Installations, etc) there is mainly 4
variations that are recieved, I have no control over this data input as it
is
generated by the 2 companies that I sub-contract to.


Could somebody offer some help.

Regards
GeoffK



.

 




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 03:38 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.