Connecting Tech Pros Worldwide Forums | Help | Site Map

Update query help

Randy Harris
Guest
 
Posts: n/a
#1: Nov 13 '05
I imported records into a table, later found out that many of them had
trailing spaces in one of the fields. If I'd caught it sooner, I could have
trimmed the spaces before the import.

This wouldn't work (nothing changed):
UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);

Would someone please tell me how to do an update query that will trim the
spaces?




PC Datasheet
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Update query help


Randy,

Create a new field in your query and enter this expression:
MyUpdateField:Trim([partnum])

Then change the query to an Update Query and enter this expression where it says
Update To in the PartNum field:
MyUpDateField

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com
www.pcdatasheet.com


"Randy Harris" <randy@SpamFree.com> wrote in message
news:aUMHc.671$Np4.478@newssvr31.news.prodigy.com. ..[color=blue]
> I imported records into a table, later found out that many of them had
> trailing spaces in one of the fields. If I'd caught it sooner, I could have
> trimmed the spaces before the import.
>
> This wouldn't work (nothing changed):
> UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);
>
> Would someone please tell me how to do an update query that will trim the
> spaces?
>
>
>[/color]


Randy Harris
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Update query help



"PC Datasheet" <nospam@nospam.spam> wrote in message
news:b0SHc.9068$sD4.8409@newsread3.news.atl.earthl ink.net...[color=blue]
> Randy,
>
> Create a new field in your query and enter this expression:
> MyUpdateField:Trim([partnum])
>
> Then change the query to an Update Query and enter this expression where[/color]
it says[color=blue]
> Update To in the PartNum field:
> MyUpDateField[/color]

Perfect. Should have thought of that myself. Thanks!
[color=blue]
> --
> PC Datasheet
> Your Resource For Help With Access, Excel And Word Applications
> resource@pcdatasheet.com
> www.pcdatasheet.com
>
>
> "Randy Harris" <randy@SpamFree.com> wrote in message
> news:aUMHc.671$Np4.478@newssvr31.news.prodigy.com. ..[color=green]
> > I imported records into a table, later found out that many of them had
> > trailing spaces in one of the fields. If I'd caught it sooner, I could[/color][/color]
have[color=blue][color=green]
> > trimmed the spaces before the import.
> >
> > This wouldn't work (nothing changed):
> > UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);
> >
> > Would someone please tell me how to do an update query that will trim[/color][/color]
the[color=blue][color=green]
> > spaces?
> >
> >
> >[/color]
>
>[/color]


Randy Harris
Guest
 
Posts: n/a
#4: Nov 13 '05

re: Update query help


"Randy Harris" <randy@SpamFree.com> wrote in message
news:rsUHc.35137$eH1.16639931@newssvr28.news.prodi gy.com...[color=blue]
>
> "PC Datasheet" <nospam@nospam.spam> wrote in message
> news:b0SHc.9068$sD4.8409@newsread3.news.atl.earthl ink.net...[color=green]
> > Randy,
> >
> > Create a new field in your query and enter this expression:
> > MyUpdateField:Trim([partnum])
> >
> > Then change the query to an Update Query and enter this expression where[/color]
> it says[color=green]
> > Update To in the PartNum field:
> > MyUpDateField[/color]
>
> Perfect. Should have thought of that myself. Thanks![/color]

Well, I spoke a bit too soon. I still have a problem. It doesn't look as
though the Trim functions work in the A2K query grid. No error, they just
don't trim the spaces. I tried the MyUpdateField:Trim([partnum]) as an
Update query, a MakeTable query and as a Select query. Trim just plain
doesn't work. Surprising.

[color=blue][color=green]
> > PC Datasheet
> > Your Resource For Help With Access, Excel And Word Applications
> > resource@pcdatasheet.com
> > www.pcdatasheet.com
> >
> >
> > "Randy Harris" <randy@SpamFree.com> wrote in message
> > news:aUMHc.671$Np4.478@newssvr31.news.prodigy.com. ..[color=darkred]
> > > I imported records into a table, later found out that many of them had
> > > trailing spaces in one of the fields. If I'd caught it sooner, I[/color][/color][/color]
could[color=blue]
> have[color=green][color=darkred]
> > > trimmed the spaces before the import.
> > >
> > > This wouldn't work (nothing changed):
> > > UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);
> > >
> > > Would someone please tell me how to do an update query that will trim[/color][/color]
> the[color=green][color=darkred]
> > > spaces?
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


rpnman
Guest
 
Posts: n/a
#5: Nov 13 '05

re: Update query help


The following worked for me:

In an update query based solely on the table in question put
TRIM:(TableName.FieldName) in the update to field.

For tblTest(ID, name), in SQL view, this yields

UPDATE tblTest SET tblTest.name = Trim([tblTest].[Name]);



--
ROGER NEYMAN

"Randy Harris" <randy@SpamFree.com> wrote in message
news:e2VHc.35150$eH1.16645896@newssvr28.news.prodi gy.com...[color=blue]
> "Randy Harris" <randy@SpamFree.com> wrote in message
> news:rsUHc.35137$eH1.16639931@newssvr28.news.prodi gy.com...[color=green]
> >
> > "PC Datasheet" <nospam@nospam.spam> wrote in message
> > news:b0SHc.9068$sD4.8409@newsread3.news.atl.earthl ink.net...[color=darkred]
> > > Randy,
> > >
> > > Create a new field in your query and enter this expression:
> > > MyUpdateField:Trim([partnum])
> > >
> > > Then change the query to an Update Query and enter this expression[/color][/color][/color]
where[color=blue][color=green]
> > it says[color=darkred]
> > > Update To in the PartNum field:
> > > MyUpDateField[/color]
> >
> > Perfect. Should have thought of that myself. Thanks![/color]
>
> Well, I spoke a bit too soon. I still have a problem. It doesn't look as
> though the Trim functions work in the A2K query grid. No error, they just
> don't trim the spaces. I tried the MyUpdateField:Trim([partnum]) as an
> Update query, a MakeTable query and as a Select query. Trim just plain
> doesn't work. Surprising.
>
>[color=green][color=darkred]
> > > PC Datasheet
> > > Your Resource For Help With Access, Excel And Word Applications
> > > resource@pcdatasheet.com
> > > www.pcdatasheet.com
> > >
> > >
> > > "Randy Harris" <randy@SpamFree.com> wrote in message
> > > news:aUMHc.671$Np4.478@newssvr31.news.prodigy.com. ..
> > > > I imported records into a table, later found out that many of them[/color][/color][/color]
had[color=blue][color=green][color=darkred]
> > > > trailing spaces in one of the fields. If I'd caught it sooner, I[/color][/color]
> could[color=green]
> > have[color=darkred]
> > > > trimmed the spaces before the import.
> > > >
> > > > This wouldn't work (nothing changed):
> > > > UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);
> > > >
> > > > Would someone please tell me how to do an update query that will[/color][/color][/color]
trim[color=blue][color=green]
> > the[color=darkred]
> > > > spaces?
> > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Randy Harris
Guest
 
Posts: n/a
#6: Nov 13 '05

re: Update query help


I am quite possibly losing my mind. Trim appears to be working perfectly.
Except for on one record. Naturally, the record I was checking to see if
Trim worked or not. It won't Trim that one record, it must have some weird
character in it or something.

Thanks to you both for your help.
Randy


"rpnman" <res0zspl@verizon.net> wrote in message
news:DtWHc.39819$Xq4.21892@nwrddc02.gnilink.net...[color=blue]
> The following worked for me:
>
> In an update query based solely on the table in question put
> TRIM:(TableName.FieldName) in the update to field.
>
> For tblTest(ID, name), in SQL view, this yields
>
> UPDATE tblTest SET tblTest.name = Trim([tblTest].[Name]);
>
>
>
> --
> ROGER NEYMAN
>
> "Randy Harris" <randy@SpamFree.com> wrote in message
> news:e2VHc.35150$eH1.16645896@newssvr28.news.prodi gy.com...[color=green]
> > "Randy Harris" <randy@SpamFree.com> wrote in message
> > news:rsUHc.35137$eH1.16639931@newssvr28.news.prodi gy.com...[color=darkred]
> > >
> > > "PC Datasheet" <nospam@nospam.spam> wrote in message
> > > news:b0SHc.9068$sD4.8409@newsread3.news.atl.earthl ink.net...
> > > > Randy,
> > > >
> > > > Create a new field in your query and enter this expression:
> > > > MyUpdateField:Trim([partnum])
> > > >
> > > > Then change the query to an Update Query and enter this expression[/color][/color]
> where[color=green][color=darkred]
> > > it says
> > > > Update To in the PartNum field:
> > > > MyUpDateField
> > >
> > > Perfect. Should have thought of that myself. Thanks![/color]
> >
> > Well, I spoke a bit too soon. I still have a problem. It doesn't look[/color][/color]
as[color=blue][color=green]
> > though the Trim functions work in the A2K query grid. No error, they[/color][/color]
just[color=blue][color=green]
> > don't trim the spaces. I tried the MyUpdateField:Trim([partnum]) as an
> > Update query, a MakeTable query and as a Select query. Trim just plain
> > doesn't work. Surprising.
> >
> >[color=darkred]
> > > > PC Datasheet
> > > > Your Resource For Help With Access, Excel And Word Applications
> > > > resource@pcdatasheet.com
> > > > www.pcdatasheet.com
> > > >
> > > >
> > > > "Randy Harris" <randy@SpamFree.com> wrote in message
> > > > news:aUMHc.671$Np4.478@newssvr31.news.prodigy.com. ..
> > > > > I imported records into a table, later found out that many of them[/color][/color]
> had[color=green][color=darkred]
> > > > > trailing spaces in one of the fields. If I'd caught it sooner, I[/color]
> > could[color=darkred]
> > > have
> > > > > trimmed the spaces before the import.
> > > > >
> > > > > This wouldn't work (nothing changed):
> > > > > UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);
> > > > >
> > > > > Would someone please tell me how to do an update query that will[/color][/color]
> trim[color=green][color=darkred]
> > > the
> > > > > spaces?
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Douglas J. Steele
Guest
 
Posts: n/a
#7: Nov 13 '05

re: Update query help


Check for the presence of a Null (Chr(0)).

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Randy Harris" <randy@SpamFree.com> wrote in message
news:7oXHc.688$Vi5.76@newssvr31.news.prodigy.com.. .[color=blue]
> I am quite possibly losing my mind. Trim appears to be working perfectly.
> Except for on one record. Naturally, the record I was checking to see if
> Trim worked or not. It won't Trim that one record, it must have some[/color]
weird[color=blue]
> character in it or something.
>
> Thanks to you both for your help.
> Randy
>
>
> "rpnman" <res0zspl@verizon.net> wrote in message
> news:DtWHc.39819$Xq4.21892@nwrddc02.gnilink.net...[color=green]
> > The following worked for me:
> >
> > In an update query based solely on the table in question put
> > TRIM:(TableName.FieldName) in the update to field.
> >
> > For tblTest(ID, name), in SQL view, this yields
> >
> > UPDATE tblTest SET tblTest.name = Trim([tblTest].[Name]);
> >
> >
> >
> > --
> > ROGER NEYMAN
> >
> > "Randy Harris" <randy@SpamFree.com> wrote in message
> > news:e2VHc.35150$eH1.16645896@newssvr28.news.prodi gy.com...[color=darkred]
> > > "Randy Harris" <randy@SpamFree.com> wrote in message
> > > news:rsUHc.35137$eH1.16639931@newssvr28.news.prodi gy.com...
> > > >
> > > > "PC Datasheet" <nospam@nospam.spam> wrote in message
> > > > news:b0SHc.9068$sD4.8409@newsread3.news.atl.earthl ink.net...
> > > > > Randy,
> > > > >
> > > > > Create a new field in your query and enter this expression:
> > > > > MyUpdateField:Trim([partnum])
> > > > >
> > > > > Then change the query to an Update Query and enter this expression[/color]
> > where[color=darkred]
> > > > it says
> > > > > Update To in the PartNum field:
> > > > > MyUpDateField
> > > >
> > > > Perfect. Should have thought of that myself. Thanks!
> > >
> > > Well, I spoke a bit too soon. I still have a problem. It doesn't[/color][/color][/color]
look[color=blue]
> as[color=green][color=darkred]
> > > though the Trim functions work in the A2K query grid. No error, they[/color][/color]
> just[color=green][color=darkred]
> > > don't trim the spaces. I tried the MyUpdateField:Trim([partnum]) as[/color][/color][/color]
an[color=blue][color=green][color=darkred]
> > > Update query, a MakeTable query and as a Select query. Trim just[/color][/color][/color]
plain[color=blue][color=green][color=darkred]
> > > doesn't work. Surprising.
> > >
> > >
> > > > > PC Datasheet
> > > > > Your Resource For Help With Access, Excel And Word Applications
> > > > > resource@pcdatasheet.com
> > > > > www.pcdatasheet.com
> > > > >
> > > > >
> > > > > "Randy Harris" <randy@SpamFree.com> wrote in message
> > > > > news:aUMHc.671$Np4.478@newssvr31.news.prodigy.com. ..
> > > > > > I imported records into a table, later found out that many of[/color][/color][/color]
them[color=blue][color=green]
> > had[color=darkred]
> > > > > > trailing spaces in one of the fields. If I'd caught it sooner,[/color][/color][/color]
I[color=blue][color=green][color=darkred]
> > > could
> > > > have
> > > > > > trimmed the spaces before the import.
> > > > > >
> > > > > > This wouldn't work (nothing changed):
> > > > > > UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);
> > > > > >
> > > > > > Would someone please tell me how to do an update query that will[/color]
> > trim[color=darkred]
> > > > the
> > > > > > spaces?
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Randy Harris
Guest
 
Posts: n/a
#8: Nov 13 '05

re: Update query help


Good guess, but in this case it was a 160. Anyone have a clue what a
Chr(160) is, or even better, how she got it in there in the first place?
(Data was entered in Excel, then imported, and yes, I went back to the
original spreadsheet and confirmed it was that way in there!)

Hmmm... It just occurred to me that a 160 is a space char (32) with the
highest order bit turned on. There must be some sort of a connection there.
But, I'm bewildered.


Private Sub Randy()
Dim I As Integer, S As String
S = DLookup("PartNum", "tblManuals", "ManualID=189")
Debug.Print S
For I = 1 To Len(S)
Debug.Print I; Asc(Mid(S, I, 1))
Next I
End Sub

93-027192 - NX2
1 57
2 51
3 45
4 48
5 50
6 55
7 49
8 57
9 50
10 32
11 45
12 32
13 78
14 88
15 50
16 32
17 32
18 160
19 32




"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:4tYHc.275$6FN.54@news04.bloor.is.net.cable.ro gers.com...[color=blue]
> Check for the presence of a Null (Chr(0)).
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>
> "Randy Harris" <randy@SpamFree.com> wrote in message
> news:7oXHc.688$Vi5.76@newssvr31.news.prodigy.com.. .[color=green]
> > I am quite possibly losing my mind. Trim appears to be working[/color][/color]
perfectly.[color=blue][color=green]
> > Except for on one record. Naturally, the record I was checking to see[/color][/color]
if[color=blue][color=green]
> > Trim worked or not. It won't Trim that one record, it must have some[/color]
> weird[color=green]
> > character in it or something.
> >
> > Thanks to you both for your help.
> > Randy
> >
> >
> > "rpnman" <res0zspl@verizon.net> wrote in message
> > news:DtWHc.39819$Xq4.21892@nwrddc02.gnilink.net...[color=darkred]
> > > The following worked for me:
> > >
> > > In an update query based solely on the table in question put
> > > TRIM:(TableName.FieldName) in the update to field.
> > >
> > > For tblTest(ID, name), in SQL view, this yields
> > >
> > > UPDATE tblTest SET tblTest.name = Trim([tblTest].[Name]);
> > >
> > >
> > >
> > > --
> > > ROGER NEYMAN
> > >
> > > "Randy Harris" <randy@SpamFree.com> wrote in message
> > > news:e2VHc.35150$eH1.16645896@newssvr28.news.prodi gy.com...
> > > > "Randy Harris" <randy@SpamFree.com> wrote in message
> > > > news:rsUHc.35137$eH1.16639931@newssvr28.news.prodi gy.com...
> > > > >
> > > > > "PC Datasheet" <nospam@nospam.spam> wrote in message
> > > > > news:b0SHc.9068$sD4.8409@newsread3.news.atl.earthl ink.net...
> > > > > > Randy,
> > > > > >
> > > > > > Create a new field in your query and enter this expression:
> > > > > > MyUpdateField:Trim([partnum])
> > > > > >
> > > > > > Then change the query to an Update Query and enter this[/color][/color][/color]
expression[color=blue][color=green][color=darkred]
> > > where
> > > > > it says
> > > > > > Update To in the PartNum field:
> > > > > > MyUpDateField
> > > > >
> > > > > Perfect. Should have thought of that myself. Thanks!
> > > >
> > > > Well, I spoke a bit too soon. I still have a problem. It doesn't[/color][/color]
> look[color=green]
> > as[color=darkred]
> > > > though the Trim functions work in the A2K query grid. No error,[/color][/color][/color]
they[color=blue][color=green]
> > just[color=darkred]
> > > > don't trim the spaces. I tried the MyUpdateField:Trim([partnum]) as[/color][/color]
> an[color=green][color=darkred]
> > > > Update query, a MakeTable query and as a Select query. Trim just[/color][/color]
> plain[color=green][color=darkred]
> > > > doesn't work. Surprising.
> > > >
> > > >
> > > > > > PC Datasheet
> > > > > > Your Resource For Help With Access, Excel And Word Applications
> > > > > > resource@pcdatasheet.com
> > > > > > www.pcdatasheet.com
> > > > > >
> > > > > >
> > > > > > "Randy Harris" <randy@SpamFree.com> wrote in message
> > > > > > news:aUMHc.671$Np4.478@newssvr31.news.prodigy.com. ..
> > > > > > > I imported records into a table, later found out that many of[/color][/color]
> them[color=green][color=darkred]
> > > had
> > > > > > > trailing spaces in one of the fields. If I'd caught it[/color][/color][/color]
sooner,[color=blue]
> I[color=green][color=darkred]
> > > > could
> > > > > have
> > > > > > > trimmed the spaces before the import.
> > > > > > >
> > > > > > > This wouldn't work (nothing changed):
> > > > > > > UPDATE tblManuals SET tblManuals.PARTNUM = Trim([partnum]);
> > > > > > >
> > > > > > > Would someone please tell me how to do an update query that[/color][/color][/color]
will[color=blue][color=green][color=darkred]
> > > trim
> > > > > the
> > > > > > > spaces?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


James Fortune
Guest
 
Posts: n/a
#9: Nov 13 '05

re: Update query help


"Randy Harris" <randy@SpamFree.com> wrote in message news:<o0ZHc.2974$m%7.2150@newssvr19.news.prodigy.c om>...[color=blue]
> Good guess, but in this case it was a 160. Anyone have a clue what a
> Chr(160) is, or even better, how she got it in there in the first place?
> (Data was entered in Excel, then imported, and yes, I went back to the
> original spreadsheet and confirmed it was that way in there!)
>
> Hmmm... It just occurred to me that a 160 is a space char (32) with the
> highest order bit turned on. There must be some sort of a connection there.
> But, I'm bewildered.
>
>
> Private Sub Randy()
> Dim I As Integer, S As String
> S = DLookup("PartNum", "tblManuals", "ManualID=189")
> Debug.Print S
> For I = 1 To Len(S)
> Debug.Print I; Asc(Mid(S, I, 1))
> Next I
> End Sub
>
> 93-027192 - NX2
> 1 57
> 2 51
> 3 45
> 4 48
> 5 50
> 6 55
> 7 49
> 8 57
> 9 50
> 10 32
> 11 45
> 12 32
> 13 78
> 14 88
> 15 50
> 16 32
> 17 32
> 18 160
> 19 32[/color]

From http://www.unicode.org/charts/PDF/U0000.pdf for Basic Latin, it
appears that 160 is a NBSP (No break space). It makes sense that Trim
would not delete this character. You can create a public function
TrimNBSP() that will get rid of them and then put the function in an
update query. Air code follows:

Public Function TrimNBSP(varIn As Variant) As Variant
Dim strTemp As String
Dim strChar As String
Dim lngI As Long
Dim lngLen As Long

TrimNBSP = varIn
If IsNull(varIn) Then Exit Function
If varIn = "" Then Exit Function
lngLen = Len(varIn)
strTemp = ""
For lngI = 1 To lngLen
strChar = Mid(varIn, lngI, 1)
If Asc(strChar) <> 160 Then
strTemp = strTemp & strChar
End If
Next lngI
TrimNBSP = strTemp
End Function

Then something like:
UPDATE tblManuals SET PartNum = TrimNBSP([PartNum]) WHERE
ManualID=189;

This will get you by until some better answers come along. This
technique should work for all versions of Access.

James A. Fortune
Don Leverton
Guest
 
Posts: n/a
#10: Nov 13 '05

re: Update query help


Hi Randy,

It looks like you have your questions answered already, but if you wanted to
build a quick-reference table for Ascii codes, it's quite simple to create
one.

Public Function fBuildAsciiTable()
Dim MyDB As DAO.Database
Dim MyRst As DAO.Recordset

Set MyDB = CurrentDb
Set MyRst = MyDB.OpenRecordset("tblChr2Asc", dbOpenDynaset)

Dim i As Integer

With MyRst

For i = 0 To 255

.AddNew
!MyChr = i
!MyAsc = Chr$(i)
.Update

Next i

.Close
End With

Set MyRst = Nothing
Set MyDB = Nothing

End Function

It is also possible to check / convert ascii codes (one at a time) in the
Debug window... i.e.
?Chr$(160)

Don

"Randy Harris" <randy@SpamFree.com> wrote in message
news:o0ZHc.2974$m%7.2150@newssvr19.news.prodigy.co m...[color=blue]
> Good guess, but in this case it was a 160. Anyone have a clue what a
> Chr(160) is, or even better, how she got it in there in the first place?
> (Data was entered in Excel, then imported, and yes, I went back to the
> original spreadsheet and confirmed it was that way in there!)[/color]


Mike Preston
Guest
 
Posts: n/a
#11: Nov 13 '05

re: Update query help


On Sun, 11 Jul 2004 19:31:19 GMT, "Don Leverton"
<leveriteNoJunkMail@telusplanet.net> wrote:
[color=blue]
>Hi Randy,
>
>It looks like you have your questions answered already, but if you wanted to
>build a quick-reference table for Ascii codes, it's quite simple to create
>one.
>
>Public Function fBuildAsciiTable()
>Dim MyDB As DAO.Database
>Dim MyRst As DAO.Recordset
>
>Set MyDB = CurrentDb
>Set MyRst = MyDB.OpenRecordset("tblChr2Asc", dbOpenDynaset)
>
>Dim i As Integer
>
>With MyRst
>
> For i = 0 To 255
>
> .AddNew
> !MyChr = i
> !MyAsc = Chr$(i)
> .Update
>
> Next i
>
> .Close
>End With
>
>Set MyRst = Nothing
>Set MyDB = Nothing
>
>End Function
>
>It is also possible to check / convert ascii codes (one at a time) in the
>Debug window... i.e.
>?Chr$(160)[/color]

You can do it all at once in the debug window, too. Try:

for i = 0 to 127: print i,chr$(i),i+128,chr$(i+128):next i

Note that the formatting will be a bit messed up on the lines that
show chr$(9), chr$(10), and chr$(13) which are the tab, line feed and
carraige return characters.

mike
Closed Thread


Similar Microsoft Access / VBA bytes