We help IT Professionals succeed at work.
Get Started

MS Access (Newest One): Pulling Data out of a MS SQL DB

111 Views
Last Modified: 2016-04-21
Folks:

I have a MS SQL 2008 server and I am trying to pull a MS Access report using a OBDC connection on a Wind 7 machine. The report I am trying to build is a Shipping Report for that day and then obviously another report for any other set of dates basically to help plan and schedule our Production Crew for the next day based off what they shipped today. One of the gals that was pulling our original access DB reports is no longer with the company, so this has been moved over to my lap with the other additional items I'm working on. I'm not 100% new to MS Access but generate certain types of reports and/or level of reporting is not my speciality.

I have multiple tables. One of the tables is called "dbo.ManufacturingRequest" which has most the data I am looking for. My report currently is set up where I am pulling a field called "Create Data" and for the "Criteria" I have it set to "Between [start] and [End]" so that I can specify to the system a range of dates I pulled.

Inside that same "dbo.ManufacturingRequest" table there is a field in there called "CompleteOrderShipDate" with a date format of "YYYY-MM-DD HH:MM:SS:SSS" (Ex: 2016-03-29 14:27:29.563). So I've created the report where I can pull today's "Shipped" orders. Where the tricky part to me is field in that same dbo (dbo.ManufacturingRequest) named "ShippingStatus" and has a number (ex: 20). I have to Select the top 1000 rows in the DB for the dbo - "dbo.ShippingMethod" and inside there as a field called "ShippingMethodID" with that same previously mentioned number (20) and to the right of it there are two additional fields named "Code" and "Name" which for the code is FXG and the "name" is "FedEx Ground".

How do I pull the report where it will pull the data I am requesting and instead of putting the "20" on the report, it auto fills it in with "FedEx Ground" since that is what 20 goes to but from the table "ShippingMethodID"?
Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE