Query format field (1 Viewer)

Nita

New member
Local time
Today, 18:13
Joined
Feb 14, 2020
Messages
19
Hi, I have a query to create a table, and one of the fields need to be long texto, but my query makes it shor texto, meaning that most of the information does not appear. The filed I nedd to format MesAnoValor: ([Mes] & " de " & (left(tabela1]![datatotal];4)) & " - " & (Format ([Valor];"currency"))
 

strive4peace

AWF VIP
Local time
Today, 12:13
Joined
Apr 3, 2020
Messages
1,003
hi Nita,

If I understand your question right ... A MakeTable Query will create a Short Text field but not a Long Text one. If your table needs to have Long Text, then make the table design yourself and, instead, use an Append Query
 

strive4peace

AWF VIP
Local time
Today, 12:13
Joined
Apr 3, 2020
Messages
1,003
that shouldn't be a problem, @vba_php -- Access should implicitely convert it to a string to concatenate
 

Nita

New member
Local time
Today, 18:13
Joined
Feb 14, 2020
Messages
19
Hi,

I concatenated that field in other query, and the query itself does not give me more then the 255 char. t is the concatenated field that need to have more than 255 char.
Anyway, your replay will help after I resolve the above isue

hi Nita,

If I understand your question right ... A MakeTable Query will create a Short Text field but not a Long Text one. If your table needs to have Long Text, then make the table design yourself and, instead, use an Append Query
 

strive4peace

AWF VIP
Local time
Today, 12:13
Joined
Apr 3, 2020
Messages
1,003
I just tested appending to a table with long text -- no problem for me ...
 

Nita

New member
Local time
Today, 18:13
Joined
Feb 14, 2020
Messages
19
mine just return 255 char, the rest of information does not appear.
 

strive4peace

AWF VIP
Local time
Today, 12:13
Joined
Apr 3, 2020
Messages
1,003
check your table design for that field. If "@" is in the Format property, then delete it
 

Nita

New member
Local time
Today, 18:13
Joined
Feb 14, 2020
Messages
19
My filed:
Mensal: ConcatRelated("Mes", "Teste1", "ID = '" & [ID] & "'", "QuotasSolicitadas)
In the query it's not visible the all when the result is above 255char.
 

Nita

New member
Local time
Today, 18:13
Joined
Feb 14, 2020
Messages
19
Hi,
There it is.
Thank you
 

Attachments

  • Database2.zip
    26.9 KB · Views: 99

strive4peace

AWF VIP
Local time
Today, 12:13
Joined
Apr 3, 2020
Messages
1,003
thanks, Nita -- I'm doing something else right now and don't have time to look ... perhaps someone else will jump in?

as I said before, however, my assumption is that changing Unicode Compression to match doesn't mean that previously entered data will use it until values are changed.
 

strive4peace

AWF VIP
Local time
Today, 12:13
Joined
Apr 3, 2020
Messages
1,003
There it is.
Thank you

hi Nita
it is showing more characters for me ...
shows all characters for me.png


I opened it with Access 2007, but also have Access 365 loaded, so maybe that is making a difference for me? Does the sample you gave me work ok for you too? Did you try it? If it does work ok for you, then perhaps you just need to export the table and then bring it back in again.
 

strive4peace

AWF VIP
Local time
Today, 12:13
Joined
Apr 3, 2020
Messages
1,003
or maybe use the sample and import everything from your other database into it ...
 

Nita

New member
Local time
Today, 18:13
Joined
Feb 14, 2020
Messages
19
I have it in 2 databases, with same code "ConcatRelated", I used copy, paste.
And what want it's a mix of both, one of them gives the all info, and the other compile 1 just one record.
It was suposed to be 1 record with all the info.
 

Attachments

  • Ex1.JPG
    Ex1.JPG
    51.8 KB · Views: 93
  • Ex2.JPG
    Ex2.JPG
    106 KB · Views: 89

Gasman

Enthusiastic Amateur
Local time
Today, 18:13
Joined
Sep 21, 2011
Messages
14,217
I get as below?, and I only have 2007

1587575389072.png
 

Nita

New member
Local time
Today, 18:13
Joined
Feb 14, 2020
Messages
19
I am working with 2016, but I have 2 databases, I am going to send it, for you to see if you understand
 

Attachments

  • Bases.zip
    171.4 KB · Views: 96

Users who are viewing this thread

Top Bottom