User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 423,580 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,386 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 637 | Replies: 2
Reply
Join Date: Mar 2008
Posts: 2
Reputation: Palmap is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Palmap Palmap is offline Offline
Newbie Poster

If/Then help for newbie

  #1  
Mar 7th, 2008
Hi guys,

I'm fairly new to MS Access and I am running Ver.2003.

I have a problem with comparing a Excel speadsheet with an Access DB.

The result I require is as follows....

If field 'Last' and ID Num in Excel speadsheet matches 'Last' and EmpID in Access DB then place 'Y' in MBR field ( 1st field) in Excel speadsheet else 'N'

The 'Y' and 'N' can be a numeric if this is easier and I could then change the numeric to a alpha 'Y' or 'N' later.

If anyone can help me I would be extremely grateful.

Thanks

Ashley
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,556
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 114
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: If/Then help for newbie

  #2  
Mar 8th, 2008
This might work better if you export the Access table as an Excel spreadsheet, then add it to your existing Excel spreadsheet as another sheet tab.

You can use quoted strings in both the condition and the results in if functions in Excel. Examples:

=IF(C5="Y",=C6*$A$4,0)

=IF(F7=Access_Sheet!F7,"Y","N")
Last edited by MidiMagic : Mar 8th, 2008 at 11:18 pm.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Mar 2008
Posts: 2
Reputation: Palmap is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Palmap Palmap is offline Offline
Newbie Poster

Re: If/Then help for newbie

  #3  
Mar 10th, 2008
Thanks, but the Access database is the final "working database' and is to large as well.
I am attempting to set the Excel Worksheet then converting to a 2nd database that will be a reflection of the first.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS Access and FileMaker Pro Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 7:30 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC