B
Blair
In a Class Modual up at the very top I have This
Option Compare Database
Option Explicit
Public Sections As Integer
Public Try As Integer
Public OneDay As Integer
Public NineDay As Integer
Public TenDay As Integer
Public TwelveDay As Integer
Public RemateDateDay As Integer
Public RemateDate As Date
Private FarmName As String
Further down I have a Private sub like this
Private Sub Form_Load()
Open "Number Of Section's" For Random As #9 Len = 50
Get #9, 9, Sections
Close #9
Text20 = Sections
Open "Try" For Random As #8 Len = 50
Get #8, 8, Try
Close #8
Combo64 = Try
Open "1 Day Remates" For Random As #7 Len = 50
Get #7, 7, OneDay
Close #7
Combo11 = OneDay
Text22 = OneDay
Open "9 Day Remates" For Random As #6 Len = 50
Get #6, 6, NineDay
Close #6
Combo58 = NineDay
Text24 = NineDay
Open "10 Day Remates" For Random As #5 Len = 50
Get #5, 5, TenDay
Close #5
Combo60 = TenDay
Text26 = TenDay
Open "12 Day Remates" For Random As #4 Len = 50
Get #4, 4, TwelveDay
Close #4
Combo62 = TwelveDay
Text27 = TwelveDay
Open "Remate Date Day" For Random As #3 Len = 50
Get #3, 3, RemateDateDay
Close #3
Text14 = RemateDateDay
Open "Remate Date" For Random As #2 Len = 50
Get #2, 2, RemateDate
Close #2
Text12 = RemateDate
Open "Farm Name" For Random As #1 Len = 50
Get #1, 1, FarmName
Close #1
Text1 = FarmName
End Sub
And another like this!
Private Sub Text1_AfterUpdate()
FarmName = Text1
Open "Farm Name" For Random As #1 Len = 50
Put #1, 1, FarmName
Close #1 ' Close file.
End Sub
This code some how saves the farm name somehow to a file and then retrieves
it on form load to show the farm name.
NOW MY PROBLEM!
When I copy the program db to another folder or drive to use it for another
farm and I change the name in one program it changes in both copys. So for
some reason both copys of the db is using the same common file to save the
name. So I am hoping someone can tell me how to segregate the two db to use
two different files, one for each farm.
Does anyone understand this code and how it works, I can't get a hold of
the guy that wrote it and I don't know enough to figure it out.
Thanks Blair
Option Compare Database
Option Explicit
Public Sections As Integer
Public Try As Integer
Public OneDay As Integer
Public NineDay As Integer
Public TenDay As Integer
Public TwelveDay As Integer
Public RemateDateDay As Integer
Public RemateDate As Date
Private FarmName As String
Further down I have a Private sub like this
Private Sub Form_Load()
Open "Number Of Section's" For Random As #9 Len = 50
Get #9, 9, Sections
Close #9
Text20 = Sections
Open "Try" For Random As #8 Len = 50
Get #8, 8, Try
Close #8
Combo64 = Try
Open "1 Day Remates" For Random As #7 Len = 50
Get #7, 7, OneDay
Close #7
Combo11 = OneDay
Text22 = OneDay
Open "9 Day Remates" For Random As #6 Len = 50
Get #6, 6, NineDay
Close #6
Combo58 = NineDay
Text24 = NineDay
Open "10 Day Remates" For Random As #5 Len = 50
Get #5, 5, TenDay
Close #5
Combo60 = TenDay
Text26 = TenDay
Open "12 Day Remates" For Random As #4 Len = 50
Get #4, 4, TwelveDay
Close #4
Combo62 = TwelveDay
Text27 = TwelveDay
Open "Remate Date Day" For Random As #3 Len = 50
Get #3, 3, RemateDateDay
Close #3
Text14 = RemateDateDay
Open "Remate Date" For Random As #2 Len = 50
Get #2, 2, RemateDate
Close #2
Text12 = RemateDate
Open "Farm Name" For Random As #1 Len = 50
Get #1, 1, FarmName
Close #1
Text1 = FarmName
End Sub
And another like this!
Private Sub Text1_AfterUpdate()
FarmName = Text1
Open "Farm Name" For Random As #1 Len = 50
Put #1, 1, FarmName
Close #1 ' Close file.
End Sub
This code some how saves the farm name somehow to a file and then retrieves
it on form load to show the farm name.
NOW MY PROBLEM!
When I copy the program db to another folder or drive to use it for another
farm and I change the name in one program it changes in both copys. So for
some reason both copys of the db is using the same common file to save the
name. So I am hoping someone can tell me how to segregate the two db to use
two different files, one for each farm.
Does anyone understand this code and how it works, I can't get a hold of
the guy that wrote it and I don't know enough to figure it out.
Thanks Blair