HI,
TRY THIS
SELECT Table1.number, LEFT(TABLE1.NUMBER,2) AS code, Table1.name,
Table1.surname
FROM Table1;
I HOPE TABLE1.NUMBER IS A TEXT FIELD..
PLS LET ME KNOW IF THIS HELPS U
THANKS
WITH REGDS
SUNIL.T
vassilis - 24 Nov 2005 18:39 GMT
unfortunatly still nothing...ill keep trying but tis getting annoying
yes all fields r text and thats table its just a test for my real db.
Ο χρήστης "Sunil" έγγραψε:
> HI,
>
[quoted text clipped - 13 lines]
>
> SUNIL.T
vassilis - 24 Nov 2005 19:12 GMT
finaly it worked with that format --->LEFT(TABLE1.NUMBER,2)
only insteed of the "comma" the ";" but i dont know why...i thought that
was something standard. thanks for your time!!
Ο χρήστης "Sunil" έγγραψε:
> HI,
>
[quoted text clipped - 13 lines]
>
> SUNIL.T
I wonder if using the ! vice a . makes a difference. As well as using reserved
words for field names - such as Name and possibly number. I would recode this
to read.
SELECT [Table1].[number],
([Table1].[number]) AS code,
[Table1].[name],
Table1.surname
FROM Table1;
> im still getting that message: you omitted an operand or operator, you enter
> an invalid character or comma...
[quoted text clipped - 17 lines]
> > > to-->Left([Table1!number], 2)
> > > im taking an invalid syntax message.
vassilis - 24 Nov 2005 18:40 GMT
so far i didnt had any progress...thanks for your time...
Ο χρήστης "John Spencer" έγγραψε:
> I wonder if using the ! vice a . makes a difference. As well as using reserved
> words for field names - such as Name and possibly number. I would recode this
[quoted text clipped - 27 lines]
> > > > to-->Left([Table1!number], 2)
> > > > im taking an invalid syntax message.
vassilis - 24 Nov 2005 19:13 GMT
finaly it worked with that format --->LEFT(TABLE1.NUMBER,2)
only insteed of the "comma" the ";" but i dont know why...i thought that
was something standard. thanks for your time!!
Ο χρήστης "John Spencer" έγγραψε:
> I wonder if using the ! vice a . makes a difference. As well as using reserved
> words for field names - such as Name and possibly number. I would recode this
[quoted text clipped - 27 lines]
> > > > to-->Left([Table1!number], 2)
> > > > im taking an invalid syntax message.