Hi steve
You dont need recursion for the Fibonacci sequence. Here are two methods for providing the n-th number in the sequence. NB if u want to find all numbers up to the n-th sequence then u would need to use arrays... post again if u need this and i will code for you.
regards
Stuart
VB Code:
  1. Private Sub Command1_Click()
  2.     Debug.Print FibNum(CLng(Text1.Text))
  3.     Debug.Print FibCalc(CLng(Text1.Text))
  4. End Sub
  5.  
  6. 'METHOD 1. EQUATION
  7. '------------------------------------------------------------
  8. Private Function FibNum(Position As Long) As Double
  9.     Dim FirstV As Double
  10.     Dim SecondV As Double
  11.    
  12.     FirstV = (1 + Sqr(5)) / 2
  13.     SecondV = (1 - Sqr(5)) / 2
  14.     FibNum = (FirstV ^ Position - SecondV ^ Position) / Sqr(5)
  15. End Function
  16.  
  17. 'METHOD 2. LOOPING
  18. '------------------------------------------------------------
  19. Private Function FibCalc(Position As Long) As Double
  20.     Dim FirstV As Double
  21.     Dim SecondV As Double
  22.     Dim lCounter As Long
  23.    
  24.     FirstV = 1
  25.     SecondV = 1
  26.     If Position > 2 Then
  27.         For lCounter = 2 To Position - 1
  28.             FibCalc = FirstV + SecondV
  29.             FirstV = SecondV
  30.             SecondV = FibCalc
  31.         Next
  32.     Else
  33.         FibCalc = 1
  34.     End If
  35. End Function