-
WSAndyAinscow
AskWoody LoungerA primary key WILL UNIQUELY define a row. If you fill multiple rows with the same data they are still different rows. For some reason the data may truly be duplicated.
I personally like nice simple joins based on one field not linking four fields in the parent table to four fields in the child, especially if you have to write it in SQL (and if it could involve inner/outer joins). Why direct in SQL? you could be getting information from the database by an outside (eg C++) app as I do on occasions.
-
WSAndyAinscow
AskWoody LoungerHi artAlexion,
Thanks for your response however I am still having problems. Please could you look at the following HTML and tell me what I am missing.
Thanks
Andyfunction rowHighlight(rowID,rowColor) {
document.table.rowID.bgColor=rowColor
}hello world me 2 3 4 this
and that -
WSAndyAinscow
AskWoody LoungerHi Grugeon,
It is possible to reuse an autonumber if it has been deleted. You need to append a record with that number you wish to re-use. Obviously you can’t duplicate it.
I would also say that having 2 autonumber fields, one for the Primary key and one for the other use (referential key?) is overkill. Why should it give Access problems. Also for you (as developer/user) the second autonumber field is effectively read only in that table. -
WSAndyAinscow
AskWoody LoungerThe recordsetclone makes a copy of the recordset collection the form uses. This allows one to search (for example) and move to an explicit record in the form or to warn that it has not been found. If you tried to do that with the records the form is based on directly it will become very comlicated.
-
WSAndyAinscow
AskWoody LoungerHow about a button next to the field called Today (surprise surprise). OnClick and you insert todays date into the field. Quick and self-explanatory.
-
WSAndyAinscow
AskWoody LoungerI am new to web page programming but I have experience with other languages. One says C programmers can adapt to Java while the structure of many things is very similar. I know for speed and control C and C++ leave Basic in the dust (I know it takes longer to write the prog in the first place). So is there any performance differences between VB script and Javascript? Are there things that one can do with Javascript and not with VB Script. This may help in this discussion.
Personally I am going with Javascript as I don’t want to recode anything should a browser other than IE be used. After all have you never experienced the ‘Oh yes we have a corporate policy to use XXX’. Then three months later well actually we know support YYY as well due to our new acquisition. -
WSAndyAinscow
AskWoody LoungerWhats the problem? I have user/group security on an Access 2000 database. It was set up by me just as one did in Acces 97 and works just fine.
-
WSAndyAinscow
AskWoody LoungerI would just like to recommend that the
‘Option Explicit’
is set at the start of a module. This will trap spelling mistakes such as
Dim lNumber as long
lNumbeer = 5
then test if something = lNumberThe other point is for efficiency and declare the type of variable.
Dim lNumber as long
instead of
Dim lNumber
which sets it as a variant. Then the code will always have to convert it to a long when it is being used. Also I suspect the line
lNumber = “6”
would be accepted but not behave as one expects. -
WSAndyAinscow
AskWoody Lounger -
WSAndyAinscow
AskWoody LoungerIt was a special case with the view on the PopUps dependant on more than one other forms settings both for filtering and what data was displayed.
Generally I won’t use them, however I forgot to add in the original post the variables involved were private, accessed through functions to help prevent naming clashes.
The whole matter of the scope of variables is something I much prefer prefer using C++ with. With VBA I am always uncertain is this a copy, a reference or a pointer to an object when I pass it to another function. -
WSAndyAinscow
AskWoody LoungerBack to your original question. Why do you want to hide them?
I suspect you really want an answer concerning security in the database and hiding an object is not really anything to do with security. -
WSAndyAinscow
AskWoody LoungerTry adding the following code to the module. You may ned to to declare it as public, or have the call inside a module not on a form. (I hope it’s OK, I’ve just copied it from MSDN Library).
Private Declare Function PlaySound Lib “winmm.dll” _
Alias “PlaySoundA” (ByVal lpszName As String, _
ByVal hModule As Long, ByVal dwFlags As Long) As Long -
WSAndyAinscow
AskWoody LoungerThere is a further technique that I use on occasions if I want to ‘synchronise’ a number of forms. Instead of passing a setting with openargs I have a module with a global variable and functions to set/read said variable. When a dependant form is launched from somewhere in the interface then the value can be read with the OnOpen event and appropriate action taken. It works, but for purists that dislike global vars it is not neat. Also it can be more awkward to debug if things go wrong and if an unhandled error ocurrs then one usually loses the value currently set.
-
WSAndyAinscow
AskWoody LoungerA general point in what you did. Do not blindly add or subtract like that. Test if the attribute is set before removing or that it is not set before adding otherwise you will not get what you want.
For example attribue XX is 0 for off and 1 for on. You want to turn it on. If it is already on then after addition the value is 2 and is that off, on or the atrribute YY now switched off? -
WSAndyAinscow
AskWoody LoungerErm. Just an aside. I develop on a Win 2000 based system with the English version of Win 2000 and Swiss German language settings (ie date same as English dd.mm.yy). The PC is over 2 years old (almost 3) now and it handles dates without a problem for Access 97 (english) and Access 2000 (German). So an older BIOS may not be the root of the problem especially as you said it only gives problems with 2 of the 3 date fields on the form. However I use bound fields. Do you do anything to the field contents before passing them to the Query?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Outdated Laptop
by
jdamkeene
9 minutes ago -
Updating Keepass2Android
by
CBFPD-Chief115
5 hours, 34 minutes ago -
Another big Microsoft layoff
by
Charlie
5 hours, 14 minutes ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
5 hours, 3 minutes ago -
May 2025 updates are out
by
Susan Bradley
5 hours, 38 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
11 hours, 18 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
11 hours, 19 minutes ago -
Drivers suggested via Windows Update
by
Tex265
11 hours, 10 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
8 hours, 55 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
18 hours, 10 minutes ago -
Apple releases 18.5
by
Susan Bradley
12 hours, 35 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
19 hours, 36 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
20 hours, 14 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
3 hours, 30 minutes ago -
No HP software folders
by
fpefpe
1 day, 3 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 hour, 14 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 day, 9 hours ago -
Copilot, under the table
by
Will Fastie
1 day ago -
The Windows experience
by
Will Fastie
1 day, 15 hours ago -
A tale of two operating systems
by
Susan Bradley
1 day, 6 hours ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 20 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 12 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 day, 5 hours ago -
Blocking Search (on task bar) from going to web
by
HenryW
7 hours, 32 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
3 days, 5 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
3 days, 5 hours ago -
regarding april update and may update
by
heybengbeng
3 days, 7 hours ago -
MS Passkey
by
pmruzicka
2 days, 8 hours ago -
Can’t make Opera my default browser
by
bmeacham
3 days, 14 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.