Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number field do alfa numeric update

Status
Not open for further replies.

Panchovia

Programmer
May 6, 2010
48
CW
I have a old table with numeric field now I create a new table it must be changed to alfa
numeric, format ---[99999]

I created a update query to update the numeric field to the new table with the info of the old table without any success.

Any suggestions.



 
example ;

Old database clientnumber; clientname etc.

1 Pancho via
2 Napaloen

New database;

DF-1 Pancho via
DF-2 Napoloen etc

code used in query

update field DF-+[clientnumber]
is this correct
 
correction:

Code used in query New database client number field
Update ; "DF-"+[Olddatabase]![clientnumber]

 
That should work if the field in the new table is a string.

Try using an ampersand for string concatenation:

"DF-" [red]&[/red] [Olddatabase]![clientnumber]

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top