-
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
-
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
7 hours, 40 minutes ago -
Office apps read-only for family members
by
b
10 hours, 16 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
7 hours, 8 minutes ago -
24H2??
by
CWBillow
21 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
19 hours, 2 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
12 hours, 15 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
7 hours, 5 minutes ago -
two pages side by side land scape
by
marc
2 days, 8 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 10 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 13 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 15 hours ago -
April 2025 updates out
by
Susan Bradley
10 hours, 46 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 9 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
23 hours, 14 minutes ago -
Creating an Index in Word 365
by
CWBillow
2 days, 1 hour ago -
Coming at Word 365 and Table of Contents
by
CWBillow
13 hours, 48 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 5 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 8 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 10 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 8 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
3 days, 1 hour ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 8 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 13 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
7 hours, 13 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 22 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 6 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 6 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 15 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 23 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
23 hours, 14 minutes 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.