hello
got a bit of code here that keeps erroring out and not sure how to resolve my problem, basicaly ive got some code that runs through all the log files ina dir and strips out any id, alias and chat data in them, and stores them in a way that can be cross referenced later,
prob is theirs no restrictions on alias's ie what characters they may contain, and am unable to change this. my code falls over it seems as soon as it hits a player with a certain alias, his alias contains the char '
for example jimmy'
he must think its cool it being their, anyway i believe its this that screws up my code. need some way of handling this, and characters that screw up insert into
incase its needed my code that gets the alias
'get player alias
sNick = sData
sNick = Mid([sNick], 5, InStrRev([sNick], "<", InStrRev([sNick], "<", InStrRev([sNick], "<") - 1) - 1) - 4)
sNick = Mid(sNick, 23, ((Len(sNick) - 23)))
code that inputs it into table
'insert nick
mySQL = "INSERT INTO tblAlias ( UserID, Alias)"
mySQL = mySQL + " VALUES ( '" & sID & "', '" & sNick & "')"
DoCmd.RunSQL mySQL
any help appreciated
got a bit of code here that keeps erroring out and not sure how to resolve my problem, basicaly ive got some code that runs through all the log files ina dir and strips out any id, alias and chat data in them, and stores them in a way that can be cross referenced later,
prob is theirs no restrictions on alias's ie what characters they may contain, and am unable to change this. my code falls over it seems as soon as it hits a player with a certain alias, his alias contains the char '
for example jimmy'
he must think its cool it being their, anyway i believe its this that screws up my code. need some way of handling this, and characters that screw up insert into
incase its needed my code that gets the alias
'get player alias
sNick = sData
sNick = Mid([sNick], 5, InStrRev([sNick], "<", InStrRev([sNick], "<", InStrRev([sNick], "<") - 1) - 1) - 4)
sNick = Mid(sNick, 23, ((Len(sNick) - 23)))
code that inputs it into table
'insert nick
mySQL = "INSERT INTO tblAlias ( UserID, Alias)"
mySQL = mySQL + " VALUES ( '" & sID & "', '" & sNick & "')"
DoCmd.RunSQL mySQL
any help appreciated