Ask a Question related to Coldfusion Database Access, Design and Development.
-
Frec #1
Query a field with spaces in it
I'm currently trying to run an update on a field in an Access database.
<CFSET LINENUM=LINENUM+1>
<CFQUERY NAme="UpdateRecords" DATASOURCE="CFACCESS">
UPDATE tbl1 SET FIELD3='NumberFormat(LINENUM, '00') WHERE Field0='L' AND
Field1='A B C D E F G'
</CFQUERY>
The data in Field1 has spaces in it. How can have the SELECT statement read
the correct data with the spaces. I tried the TRIM function but it didn't work
for me.
i.e TRIM('A B C D E F G')
Thanks.
Thanks,
Doug
Frec Guest
-
Calculated Field in Query of Query
How do you add a calculated field to a Query of Query using a function DollarFormat(datafield) as calcField -
multiple field query - plus
I want to query an Access database through ASP. I want the query to return records based on parameters entered by the user, unless no parameter for... -
outputing field with spaces in name (bus addr)inmsaccess
how to form the output for a field with a space in the name. Using MSAccess. <cfoutput> #members.# </cfoutput>doesn't work. Neither did about 5... -
Spaces being truncated in query / MID function gone?
SELECT COUNT(DISTINCT PRES_CYCL_ID) is being changed to SELECT COUNT(DISTINCTPRES_CYCL_ID) If I response.Write the query, I see the space and... -
SQL Query with Field Conditionals???
Try removing the quotes from around False? "Shannon" <scomins@unitedradio.com> wrote in message news:#WgOsZUTDHA.2092@TK2MSFTNGP10.phx.gbl...... -
jdeline #2
Re: Query a field with spaces in it
For openers, you need # around your NumberFormat( ) function: '#NumberFormat( )#'. What are you trying to filter on Field1? Could you provide an example of the data in Field1?
jdeline Guest
-
Frec #3
Re: Query a field with spaces in it
The data in field1 looks like the following:
'AB 123 061301AB 244 0106 101'
I'm going to try copy it from the field and paste it into my code. This may
keep the format. Maybe I don't a function.
Frec Guest



Reply With Quote

