I need to pass my database to a help forum in order to get some assistance.
I want to scramble up some of my data for privacy purposes.
Does anyone have an existing routine or suggestion on how to do this?
I'm ideally looking for some procedure I can pass a field value to and
return a scrambled value. I can then use this procedure on any column in any
table I want in future.
Thanks!
Chris
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
reso...@pcdatasheet.com
www.pcdatasheet.com
If you don't get the help you need in the newsgroup, I can help you for a
very reasonable fee. Over 1000 Access users have come to me for help.
From my files ---------
Example: TestRandomEntries 10, 10
will give 10 entries that are 10 characters long.
Public Sub TestRandomEntries(intQty As Integer, intLength As Integer)
On Error GoTo HandleError
Dim intValue As Integer, strValue As String, intCount As Integer
Dim db As DAO.Database, rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("Table9", dbOpenTable)
Randomize
Const DUPLICATE_INDEX = 3022
intCount = 0
strValue = ""
Do Until intCount = intQty
Do Until Len(strValue) = intLength
'Alpha Numeric characters are ASCII 48-57, 65-90, and 97-122
'Formula from the help file
'Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
intValue = Int((122 - 48 + 1) * Rnd + 48)
Select Case intValue
Case 48 To 57, 65 To 90, 97 To 122
strValue = strValue & Chr(intValue)
Case Else
End Select
Loop
With rst
.AddNew
![fldNumbers] = strValue 'Add data.
.Update 'Save changes.
End With
'Increment our counter to see
'how many we have added
intCount = intCount + 1
'Start a new string
strValue = ""
Loop
CleanUp:
On Error Resume Next
rst.Close
Set rst = Nothing
Set db = Nothing
Exit Sub
HandleError:
If Err.Number = DUPLICATE_INDEX Then
'Only count successful additions
intCount = intCount - 1
Resume Next
End If
MsgBox Err.Number & vbCrLf & Err.Description, , "Error"
Resume CleanUp
End Sub
"KitCaz" <Kit...@discussions.microsoft.com> wrote in message
news:A76F5CD3-302B-4462...@microsoft.com...
So master santos, how many times do you have to be told these newsgroups are
not for your personal ambulance chasing.
John... Visio MVP
:-)
peter walker
"John Marshall, MVP" <lanc...@stonehenge.ca> wrote in message
news:%23fWzY7l...@TK2MSFTNGP12.phx.gbl...
"PC Datasheet" wrote:
> ..AddNew
> ![fldNumbers] = strValue 'Add data.
> ..Update 'Save changes.
You just don't care about the newsgroups. You have no ethics at all.
You only care about making money, and you act as if the groups are your private hunting ground.
-- You abuse this group and others for job-hunting and advertising over and over again
-- You are insulting lots of people here when they ask you to stop this
-- You posted as Steve, Ron, Tom, Rachel, Kathy, Kristine, Heather and ??? while asking questions
(the latest 'star's': 'Access Resource' and Tom no...@email.com)
-- You try to sell a CD ($125,--) with FREE code you gathered from these groups here
-- There even has been a 'Scam-alert' about you which has been explained recently in the thread 'To all':
http://groups.google.com/group/comp.databases.ms-access/msg/46038ba2954261f9?hl=en
-- Also recently it became clear that you have been spamming innocent people asking questions:
http://groups.google.com/group/comp.databases.ms-access/msg/4f76d0ed3e5f58ad?hl=en
So why would ANYBODY ever trust a person like you and hire you?
********************************************************
To all: Explanation and more on this answer to Steve:
http://home.tiscali.nl/arracom/stopsteve.html
Arno R
Steve, you could at least give Wayne a credit.
"PC Datasheet" <nos...@nospam.spam> wrote in message
news:nZ76f.17869$QE1....@newsread2.news.atl.earthlink.net...
Thanks for the note!
I didn't keep the source for the code so there was no way to give specific
credit. I did not intentionally leave Wayne out. Credit now goes to Wayne
for helping a second poster out with his code.
Steve
"Rob Oldfield" <bl...@blah.com> wrote in message
news:ekerCso...@TK2MSFTNGP14.phx.gbl...
"PC Datasheet" <nos...@nospam.spam> wrote in message
news:4ae6f.17445$vw6....@newsread1.news.atl.earthlink.net...
"PC Datasheet" <nos...@nospam.spam> wrote in message
news:4ae6f.17445$vw6....@newsread1.news.atl.earthlink.net...
> Rob,
>
> I didn't keep the source for the code so there was no way to give specific
> credit. I did not intentionally leave Wayne out. Credit now goes to Wayne
> for helping a second poster out with his code.
>
> Steve
So master santos is this part of the code on the CD you sell? Do you give
credit for any of the code on the CD?
John... Visio MVP
"PC Datasheet" <nos...@nospam.spam> wrote in message
news:4ae6f.17445$vw6....@newsread1.news.atl.earthlink.net...
No Steve. This again shows 'something' about you, your credibility, your ethics.
Showing off with other peoples code... sigh.
I Bet indeed this is on your CD ... without credits, because "there was no way to "
You make me puke !
Arno R
Thanks for the suggestion. I will do that from now on if you explain to me
how to google when you just have the code.
Steve
"Rob Oldfield" <bl...@blah.com> wrote in message
news:uFyozJp1...@TK2MSFTNGP14.phx.gbl...
Thanks for the alert! I have no idea how it got there or how to remove it.
It hasn't always been there. Do you have any idea on how to remove it?
Steve
"Rob Oldfield" <bl...@blah.com> wrote in message
news:eitTUYp...@TK2MSFTNGP09.phx.gbl...
Well, I guess with Google being all so new it stands to reason that a
novice would ask such a question. But your are no novice are you Steve,
or is it "Tom"? You sure are entertaining. You expect anyone here to
really believe you need help with Google? Why do you treat all those who
question your ethics as infidels? And just how would you know this is
the "second" poster helped out with this code? How did you work that out?
Hi WSF,
I think indeed this might be a good catch.
Arno R
"PC Datasheet" <nos...@nospam.spam> wrote in message
news:8rg6f.18106$QE1....@newsread2.news.atl.earthlink.net...
"PC Datasheet" <nos...@nospam.spam> wrote in message
news:tlg6f.19485$q1.1...@newsread3.news.atl.earthlink.net...
When Wayne previously posted he helped the first poster. When I posted
Wayne's code, Wayne indirectly helped a second poster. 1 + 1 = 2
lamebrain!!!
"WSF" <som...@microsoft.com> wrote in message
news:Kbj6f.1883$S24.1...@news.xtra.co.nz...
Depends if we are talking about the Access engine.
> When Wayne previously posted he helped the first poster. When I posted
> Wayne's code, Wayne indirectly helped a second poster. 1 + 1 = 2
Discounting the lurkers.
The count is Reed, KitCaz and master santos.
> lamebrain!!!
Isn't personal insults against the rules?
John... Visio MVP
Steve
"John Marshall, MVP" <lanc...@stonehenge.ca> wrote in message
news:uxKoq2x1...@TK2MSFTNGP10.phx.gbl...
More personal insults? So pointing out that you use these newsgroups for
your own personal profit is against the rules?
So you must think the same of the guy who defined MVPs as:
>A friend, someone who unselfishly shares his knowledge and expects nothing
>in
>return. Considers every question posted in this newsgroup very important to
>the
>poster and is never critical or demeaning to the poster. Accepts every
>poster as
>a human being and affords all posters the respect every human being
>deserves.
John... Visio MVP
But then again, you never do give straightforward answers do you Steve.
Or is it Tom, Dick, or Harry? Do you really give yourself girls' names?
You take the moral high ground against people who have offered more for
free than you have been able to take for nothing. Your pathetic excuse
for not acknowledging someone else's code is unbelievable - you offer a
CD for over a hundred dollars that is full of other peoples' code? All
acknowledged? Yeah, right!
You are a cheat and a wanker. Do you take a free ride on the newsgroups
because you cannot make a success of your business? or get a proper job?
More often than not posters and others get the answers they seek
promptly from people who provide the information freely.
That is, if they beat you to the post.
Stop scrounging Steve. Stop begging on the newsgroups.
Some of us who recognise the principals of the newsgroups know your
pedigree. Care to spawn a few more Arnos?