-
WSroberta
AskWoody LoungerJune 13, 2005 at 11:30 am in reply to: Not displaying whole hyperlink in report field (2000 (in 2003)) #953246the control source is the field from the query my report is based upon. The query uses the table field (doc Name) which is a hyperlink field. So viewed in a table or form it says e.g.”April Document List” (naturally in blue and underlined) – but for some reason in a report it picks up the hyperlink file name as well?
-
WSroberta
AskWoody LoungerTalk about wood and trees – I was lost in a veritable forest!!!! I had a unique ref on the form – but I just got obsessed with linking the person and the document with the progress report.
Many many thanks – I shall be able to get some sleep before work tomorrow!!!!
Regards
Roberta -
WSroberta
AskWoody Loungerthanks to both of you, – I tend to fight shy of DOS options – coward that I am!! I went down the software route and the recommended program was absolutely superb – has solved the problem.
Regards
Roberta
-
WSroberta
AskWoody LoungerI’m obliged. Thank you.
Roberta
-
WSroberta
AskWoody LoungerYes there are three tables one which lists the project details, one which lists the possible locations (all 64 of them!!) and a third table — which has the project number and the location (being joint primary keys as each project can only be in one location!.
The third table is the one which is updated by the option selection.
However, if the 64 after update entries will work – then I am happy to go with this (anything to get this finished!!!!!!)
Cheers
Roberta
-
WSroberta
AskWoody LoungerThe code I have used is some that you very kindly provided for me
Private Sub Form_Current()
If Me.NewRecord = False Then
Me.Opt1 = DCount(“*”, “destination table”, “[pdf]= ” & Me.PDFRef & ” and [Location] = ‘Business Site'”) = 1
Me.Opt2 = DCount(“*”, “destination table”, “[pdf]= ” & Me.PDFRef & ” and [Location] = ‘Customer Site'”) = 1
End If
End SubPrivate Sub Opt1_AfterUpdate()
Dim strSQL As String
DoCmd.SetWarnings False
If Me.Opt1 = True Then
strSQL = “INSERT INTO [Destination Table] ( PDF, Location ) Values (” & Me.PDFRef & “,’Customer Site’)”
Else
strSQL = “DELETE ‘*’FROM [Destination Table] WHERE [Destination Table].PDF = ” & Me.PDFRef & _
” AND [Location] = ‘Customer Site'”
End If
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
End SubPrivate Sub Opt2_AfterUpdate()
Dim strSQL As String
DoCmd.SetWarnings False
If Me.Opt2 = True Then
strSQL = “INSERT INTO [Destination Table] ( PDF, Location ) Values (” & Me.PDFRef & “,’Business Site’)”
Else
strSQL = “DELETE ‘*’FROM [Destination Table] WHERE [Destination Table].PDF = ” & Me.PDFRef & _
” AND [Location] = ‘Business Site'”
End If
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
End SubWhich I have to tell you works absolutely brilliantly – just not when they want to be able to update all or clear all!!
Roberta
-
WSroberta
AskWoody LoungerThanks for this – and for showing me how to edit my post (much appreciated).
However, though the code above will beautifully select or deselect the Option Buttons – unfortuantely it does not up date the table which is triggered by the AfterUpdate event of each option button (if I go on a record and back a record the selections have returned to their previous state rather than writing to or deleting from the table from the AfterUpdate event).
The option buttons are in a sub form – and I have tried with the code in both forms. Only with the code in the sub form will the select or deselect work – but I think I need to do something else to trigger the AfterUpdate code in the form at the same time?
I am so close to getting this database finished and have learnt so much!!!
Thanks
Roberta
-
WSroberta
AskWoody LoungerHow did you all know my current problem!!!
not crucial but would be of interest:
if there are no records – rather than getting an error report how can you cancel the report and just get a message “nothing to report” or something similar?
Thanks
-
WSroberta
AskWoody LoungerThank you so so much. You just don’t know how much trouble this has got me out of!!!!!
Roberta
-
WSroberta
AskWoody LoungerAfter having spent 3 hours with this – and now revisited it I find that I have not selected event procuedre under After UpDate on the option buttons! I got too bound up with the code.
Apologies for taking up time here
-
WSroberta
AskWoody LoungerDecember 20, 2004 at 7:12 am in reply to: Show no of days left to Christmas on a Form (2003) #914576Your a genius – just had to put sets of brackets along side the “date” bit and it works a treat.
Thanks
-
WSroberta
AskWoody LoungerDecember 20, 2004 at 7:12 am in reply to: Show no of days left to Christmas on a Form (2003) #914577Your a genius – just had to put sets of brackets along side the “date” bit and it works a treat.
Thanks
-
WSroberta
AskWoody LoungerI tried – edit message, then under format selected plain text (agreed that it would lose formatting).
Then I selected edit message again. This then showed Rich Text as an option. Select this – then I found I could insert an item – including notes,
In the reading pane (I am currently using 2003) the note showed and I could click and access it (I assume in any other version it will show in preview.)
Bit of a long way around – but It worked and was quite good!!!
-
WSroberta
AskWoody LoungerI tried – edit message, then under format selected plain text (agreed that it would lose formatting).
Then I selected edit message again. This then showed Rich Text as an option. Select this – then I found I could insert an item – including notes,
In the reading pane (I am currently using 2003) the note showed and I could click and access it (I assume in any other version it will show in preview.)
Bit of a long way around – but It worked and was quite good!!!
-
WSroberta
AskWoody LoungerDecember 11, 2004 at 12:35 pm in reply to: preventing previous message text being altered (2003) #911835Unfortunately with 2003 even this does not seem to work – please has anyone tried Information Rights Management (which seems to be a button on the New Message toolbar now?)
![]() |
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
-
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
3 hours, 56 minutes ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
3 hours, 58 minutes ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
12 hours, 50 minutes ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
46 minutes ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
2 hours, 32 minutes ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
21 hours, 46 minutes ago -
Apple backports fixes
by
Susan Bradley
4 hours, 20 minutes ago -
Win 11 24H2 will not install
by
Michael1950
23 hours, 58 minutes ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
20 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
9 hours, 9 minutes ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
23 hours, 46 minutes ago -
Get back ” Open With” in context menus
by
CWBillow
1 day, 12 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
4 hours, 38 minutes ago -
simple general stupid question
by
WSaltamirano
1 day, 10 hours ago -
April 2025 Office non-Security updates
by
PKCano
2 days, 3 hours ago -
Microsoft wants to hear from you
by
Will Fastie
1 day, 3 hours ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
2 days, 7 hours ago -
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
2 days, 12 hours ago -
Test post
by
Susan Bradley
2 days, 14 hours ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
2 days, 16 hours ago -
SSD shuts down on its own
by
CWBillow
2 days, 7 hours ago -
OneDrive File Sharing Changes
by
David Clark
3 days ago -
OneDrive File Sharing Changes
by
David Clark
3 days, 2 hours ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
2 days, 2 hours ago -
Today is world backup day
by
Alex5723
2 days, 18 hours ago -
Windows .exe on Mint
by
Slowpoke47
4 hours, 37 minutes ago -
Reviewing your licensing options
by
Susan Bradley
12 hours, 35 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
2 hours, 26 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
1 day, 19 hours ago -
Making sense of Settings in Windows 11
by
Simon Bisson
1 day, 20 hours ago
Recent blog posts
- MS-DEFCON 2: Seven months and counting
- Apple backports fixes
- April 2025 Office non-Security updates
- Microsoft wants to hear from you
- Reviewing your licensing options
- Apple has been analyzing your photos since September 2024
- What Windows 11 24H2 offers beyond bugs
- Making sense of Settings in Windows 11
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.