PC Review


Reply
Thread Tools Rate Thread

Access 2007 HELP Trying to Interpolate data

 
 
New Member
Join Date: May 2011
Posts: 4
 
      26th May 2011
Hi, So i have a table that links to a form. When someone is using this form they are going to put in values for eight fields, the fields are c800, c1000, c1200 and so on until c2200. The numbers they input need to be used to interpolate numbers for the fields between them so c850, c900, c950 and so on. I wrote a code that I am trying to link to a button on the form but I cannot make it do anything or even except the numbers that are typed into the fields or display the calculated values into the corresponding fields. The code is copied below. Its only part of it since the entire thing just repeats itself.

Private Sub Command315_Click()
On Error GoTo Command315_Click_Err
DoCmd.RunMacro "Non expendable inter", , ""

If [c800] = "" Then
[c850] = "N/A"
[c900] = "N/A"
[c950] = "N/A"
ElseIf [c800] < [c1000] Then
[c850] = ([c800] + (([c1000] - [c800]) / 4))
[c900] = ([c800] + (([c1000] - [c800]) / 2))
[c950] = ([c800] + (([c1000] - [c800]) / (3 / 4)))
ElseIf [c800] > [c1000] Then
[c850] = ([c1000] + (([c800] - [c1000]) / 4))
[c900] = ([c1000] + (([c800] - [c1000]) / 2))
[c950] = ([c1000] + (([c800] - [c1000]) / (3 / 4)))
End If
End Sub
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 - Interpolate Joe Microsoft Excel Charting 2 1st Jun 2008 07:35 PM
Interpolate two or more data points Robert Microsoft Excel Worksheet Functions 1 21st Jan 2008 04:02 PM
Interpolate data =?Utf-8?B?cGpkMzM=?= Microsoft Excel Misc 2 8th Mar 2007 03:35 PM
how do i interpolate data =?Utf-8?B?bXA=?= Microsoft Excel Misc 1 8th Feb 2005 04:33 PM
Interpolate data from a graph Mike Microsoft Excel Misc 0 27th Apr 2004 05:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 PM.