-
WSmcneilkm
AskWoody LoungerThanks Hans,
I was trying to rebuild the zip with the queries changed and send them along, it really is only the first two anyway. I didn’t realize the question on how to selectively import records directly or delete and reimport others was so down in the weeds. I was just having trouble thinking it through.
Thanks anyway
-
WSmcneilkm
AskWoody LoungerIn the on open event of a form I us ethe following:
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
MaximizeRestoredForm Me‘On Error GoTo ErrorHandler
If fIsFileDIR(“C:Documents and SettingsmcneilkmMy DocumentsEBPricingFilesPricing Detail EB Export.xls”) = True Then
DoCmd.SetWarnings False
DoCmd.TransferSpreadsheet acImport, , “Pricing_Detail_EB_Export”, “C:Documents and SettingsmcneilkmMy DocumentsEBPricingFilesPricing Detail EB Export.xls”, True
DoCmd.TransferSpreadsheet acImport, , “Pricing_Export”, “C:Documents and SettingsmcneilkmMy DocumentsEBPricingFilesPricing Export.xls”, TrueDoCmd.OpenQuery “qryAppendToTarPricing”
DoCmd.OpenQuery “qryAppendToTARDetail”
DoCmd.OpenQuery “qryAppendToPricingProgramDetail”
DoCmd.OpenQuery “qryAppendToPricingProgramPricing”DoCmd.OpenQuery “qryEmailTable”
DoCmd.OpenQuery “qryDeleteAfterImportDetail”
DoCmd.OpenQuery “qryDeleteAfterImportPricing”DoCmd.SetWarnings True
DoCmd.SendObject acSendTable, “tblEmailChangeListTable”, “Text”, “#GRCT Code400”, , , “Pricing and Technical Report Data Added to TAR Template and Pricing Program”, “This email is auto forwarded and is sent to inform you that the TAR Template Database and the Pricing Program have been loaded/Updated with the latest Data from EB through ” & Date & “. If you have any problems please repond to mcneilkm@supship.navy.mil.”, False
Kill “C:Documents and SettingsmcneilkmMy DocumentsEBPricingFilesPricing Export.xls”
Kill “C:Documents and SettingsmcneilkmMy DocumentsEBPricingFilesPricing Detail EB Export.xls”Else
MsgBox “No Pricing / TAR Data to import at this time”, , “Pricing / TAR Import”
End If
End Sub
The queries in the attachment that I sent should point to the “Pricing” and “Pricing Detail EB” tables. I neglected to change the queries when I zipped.
The main idea here is taking the excel file, transferring the spreadsheet to an “Pricing_Detail_EB_Export” or “Pricing_Export” table, then using the queries to append that table to the “Pricing” or Pricing Detail EB” table. The other queries delete the data written to the “Pricing_Detail_EB_Export” or “Pricing_Export” tables after the append. Finally, I build a txt file and send as an attachment to an email listing the records imported.
Does this help any?
-
WSmcneilkm
AskWoody LoungerSorry Hans,
In my haste I did not realize the linked tables would mess everything up. In any event, the attached should be able to be reviewed. Thanks for your help.
-
WSmcneilkm
AskWoody LoungerThanks Hans,
Here is a zipped file.
Kevin
-
WSmcneilkm
AskWoody LoungerBefore I do that (it contains company private info), let me try to explain the relationship. I have one table called “Pricing” which contains pricing related data at what I call the macro level. It has a unique pricing ID and specific data elements such as the name of rate schedules used to price it, specific contact info etc. The database has a related table called “Pricing Detail”. This table contain pricing data related to the “Pricing ” table through the unique ID. The data in this table is more along the lines of a line item detail of the “Pricing Record”. There are many line item records associated with the “Pricing” table record. The data from both of these tables comes from a contractor who will send us two excel files to import. Each file contains records for these tables. My problem happens when they send me a set of files containing records that are imported on one day, but may also send me on a seperate day in the future, “Pricing Detail” data for a specificf “Pricing that was already sent but updated for a current price. This updated set of records may contain more or less “Pricing Detail” records that were previously imported for an existing Pricing. (ex:On Monday i import a file with “Pricing” record which has a pricing ID of “123”. The coresponding “Pricing Detail” file has 15 records at the detail level with a pricing id of 123. On Wednesday I get another file that has new records with different pricing id’s as well as updated “Pricing Detail” records with a pricing id of “123”.) I need to be able to import the new records(previously never imported) as well as the updated records(ones that already exist, but may have different number of records with specific pricing id).
I hope this helps. I would have to delete all data in database in order to send it without the company private info.
Kevin
-
WSmcneilkm
AskWoody LoungerThanks Hans,
I thought about that but here is what I thought was a problem to that solution. This import represents Pricing detail records from an outside source. These detail records relate to one record in another table. If the detail records already exist, it means that the outside source has updated their pricing information and it may have more detail records or less detail records as well as different data within the records. Maybe I am trying to think to hard through this process? If there are 10 records with a particular ID that already exists and the update query tries to handle 8 new records, what will it do with the 2 remaining records?Kevin
-
WSmcneilkm
AskWoody LoungerHans,
Just out of curiosity, When there is a Front End / Back End set up and all the tables in the BE are linked to the FE, does this impact any size limitations such as the 2 gig limit on the database? In other words, is the actual database size the combined size of the FE and BE, (because of the linked tables)?
thanks
Kevin -
WSmcneilkm
AskWoody Loungerthank you !
-
WSmcneilkm
AskWoody LoungerThanks Hans,
Sounds like this needs to be in a module with a call to that function from the log on form. Do i need to provide the “Full PathName”, or just the full name with the “.mdb” Extention?
Thanks
Kevin -
WSmcneilkm
AskWoody LoungerThank You it worked great
-
WSmcneilkm
AskWoody LoungerYes, that is correct. It seems though that it is associated with one network printer. I have a total of three printers available, however only two of the three allow me to print from Access. I can print to all three with any other software.
-
WSmcneilkm
AskWoody LoungerThanks,
I changed my default and it started working. Strange though, I can print to the other netwok printer just fine for everything else but ACCESS Reports.
-
WSmcneilkm
AskWoody LoungerNo and I will, but just realized I can’t print any reports in any database.
-
WSmcneilkm
AskWoody Loungerthank you
-
WSmcneilkm
AskWoody LoungerHans,
I have determined that the format with the multiple recipients works with one attachment. Does this method not support multiple attachments?
Thanks
![]() |
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
-
Installer program can’t read my registry
by
Peobody
4 hours, 29 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
6 hours, 39 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
4 hours, 23 minutes ago -
False error message from eMClient
by
WSSebastian42
4 hours, 17 minutes ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
13 hours, 22 minutes ago -
Office 2021 Perpetual for Mac
by
rebop2020
14 hours, 34 minutes ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
19 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
18 hours, 6 minutes ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
4 hours, 7 minutes ago -
Outdated Laptop
by
jdamkeene
23 hours, 31 minutes ago -
Updating Keepass2Android
by
CBFPD-Chief115
1 day, 4 hours ago -
Another big Microsoft layoff
by
Charlie
1 day, 4 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
8 hours, 2 minutes ago -
May 2025 updates are out
by
Susan Bradley
3 hours, 56 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
1 day, 10 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
1 day, 10 hours ago -
Drivers suggested via Windows Update
by
Tex265
1 day, 10 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
1 day, 8 hours ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
1 day, 17 hours ago -
Apple releases 18.5
by
Susan Bradley
1 day, 11 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 day, 18 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
1 day, 19 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
4 hours ago -
No HP software folders
by
fpefpe
2 days, 3 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 day ago -
Stay connected anywhere
by
Peter Deegan
2 days, 8 hours ago -
Copilot, under the table
by
Will Fastie
11 hours, 5 minutes ago -
The Windows experience
by
Will Fastie
2 days, 14 hours ago -
A tale of two operating systems
by
Susan Bradley
19 hours, 7 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
2 days, 20 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.