-
WSkentg
AskWoody LoungerThat’s what I was looking for John – thanks
-
WSkentg
AskWoody LoungerIt wasn’t my report but let’s file this under stupid questions – I hadn’t noticed when I’d looked at it that ther was just a millimeter of spare space on the right hand side. After your reply I went back and looked – D’OHH
-
WSkentg
AskWoody LoungerThanks Charlotte,
That didn’t work but it pointed me in the right direction – this did –SQL1 = “INSERT INTO tblLocalOption (Option_Name) VALUES (” & Chr(34) & strOption & Chr(34) & “);”
thanks
-
WSkentg
AskWoody LoungerI do use the following code to link the table after I create it in the backend –
‘ Link to frontend
If Not TableExists(“strTable”) = True Then
DoCmd.TransferDatabase acLink, “Microsoft Access”, _
strDatabase, acTable, strTable, strTable
End If -
WSkentg
AskWoody LoungerThe client has an already installed backend database on their server. When I send them a new front end they open a form which allows them to link to the backend. On closing this form a routine runs which updates the schema in their backend database to add any new tables, fields and indexes. This works really well in that it relieves the client of the need to make any schema changes.
The new front end does add new tables and fields and these fields and indexes are seen by the front end. The only problem I have is that I need to change the properties of some indexes to be primary and unique. So adding the follwing lines to my add table routine before I append the new index works a treat.
With idxIndex
.Unique = True
.Primary = True
End With
Thanks for pointing me in the right direction. -
WSkentg
AskWoody LoungerThanks, I can now create fields and indexes but how do I make an index the key and how do I set the index to not allow duplicates?
-
WSkentg
AskWoody LoungerOK so I’ve got it all wrong. I am trying to add a field to an existing database in the backend. So how should I be doing this. and how do I add an index? I have managed to add a table to the backend with one field though it does not have an index.
-
WSkentg
AskWoody LoungerThanks for that now if I could only solve my personal relationship probems that easily!
-
WSkentg
AskWoody LoungerThanks Hans that’s great and yes I do need to use DAO.
Regards
Kent -
WSkentg
AskWoody LoungerThanksn Hans – That works fine but if it is run twice the backend table is deleted. What is the best way to check if the table already exists in the backend and as a linked table in case it was run from another copy of the front end?
Regards
Kent -
WSkentg
AskWoody LoungerThat got it – thanks.
-
WSkentg
AskWoody LoungerThat got it – thanks.
-
WSkentg
AskWoody LoungerYour code works but requires 4 passes to delete all the tables, I have stepped through the code and all looks OK but each time I run it it leaves some undeleted. Very strange.
-
WSkentg
AskWoody LoungerYour code works but requires 4 passes to delete all the tables, I have stepped through the code and all looks OK but each time I run it it leaves some undeleted. Very strange.
-
WSkentg
AskWoody LoungerJanuary 4, 2005 at 1:33 am in reply to: Table names when Attaching to an ODBC Datasource (XP) #918051WOW! that was fast – thank you.
![]() |
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
-
Marriage Counseling – Manages To Do It Save Our Marriage? (Awaiting moderation)
by
lynwoodspellman
3 hours, 16 minutes ago -
Where’s the cache today?
by
Up2you2
3 hours, 9 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
10 hours, 15 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
10 hours, 36 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
3 hours, 50 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
20 hours, 23 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
20 hours, 30 minutes ago -
regarding april update and may update
by
heybengbeng
21 hours, 59 minutes ago -
MS Passkey
by
pmruzicka
55 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 5 hours ago -
*Some settings are managed by your organization
by
rlowe44
16 hours, 23 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 4 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days, 9 hours ago -
AI slop
by
Susan Bradley
3 hours, 11 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 10 hours ago -
Two blank icons
by
CR2
22 hours, 17 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 19 hours ago -
End of 10
by
Alex5723
2 days, 22 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 20 hours ago -
test post
by
gtd12345
3 days, 4 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 18 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
20 hours, 36 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 8 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 20 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 23 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
4 days ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 11 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
4 days, 2 hours ago -
Are manuals extinct?
by
Susan Bradley
1 day, 2 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.