I still got an editting problem !
If I edit field offer or Photo I get an error : "error 438, this property or methode will not be supported by this object".
But I also edit field PowerPointSlide the same way and that's working OK !
See the code:
Private Sub Knop82_Click()
Set Db = CurrentDb()
Set Rs = Db.OpenRecordset("select InvestmentName, BudgetYear, InvestmentPurpose, Necessity, Offer, EstimatedPrice, PowerPointSlide, Photo, Capital, Expense, EEA, ROI, PaccarProjectNumber, Agreed, CarryOver, SbonNumber, SbonDate, FinishedSbonDate, ProductReceived, ChangeDate, ChangedBy From Investmentplanning where IndexNumber=" & Index)
Private Sub Knop82_Click()
With Rs
.Edit
BudgetYear = Me.txtBudgetY3
InvestmentPurpose = Me.txtInvestmentPurpose3
Necessity = Me.txtNecessity3
EstimatedPrice = Me.txtEstimatedPrice3
Capital = Me.txtCapital3
Expense = Me.txtExpense3
-> Offer = Offerte
PowerPointSlide = Slide
-> Photo = Foto
EEA = Me.txtEEA3
ROI = Me.txtROI3
ChangeDate = Date
ChangedBy = username
.Update
Rs.Close
Set Rs = Nothing
MsgBox ("Saved Application Form")
DoCmd.Close
DoCmd.OpenForm "blablabla", acNormal
End With
End Sub
If I put for every field (between edit and update) also a "!" like !Offer = Offerte. But when I do that I get a writing conflict : "When editting the record, this record is changed by another user.If the record will be saved, the changes of the other user will be lost.I have the possibility to save the record, copy it to the background or ignore the changes"
Offerte, Slide and Foto are public Strings and are declared in the database as hyperlink
So what do I do wrong ? Help needed !
If I edit field offer or Photo I get an error : "error 438, this property or methode will not be supported by this object".
But I also edit field PowerPointSlide the same way and that's working OK !
See the code:
Private Sub Knop82_Click()
Set Db = CurrentDb()
Set Rs = Db.OpenRecordset("select InvestmentName, BudgetYear, InvestmentPurpose, Necessity, Offer, EstimatedPrice, PowerPointSlide, Photo, Capital, Expense, EEA, ROI, PaccarProjectNumber, Agreed, CarryOver, SbonNumber, SbonDate, FinishedSbonDate, ProductReceived, ChangeDate, ChangedBy From Investmentplanning where IndexNumber=" & Index)
Private Sub Knop82_Click()
With Rs
.Edit
BudgetYear = Me.txtBudgetY3
InvestmentPurpose = Me.txtInvestmentPurpose3
Necessity = Me.txtNecessity3
EstimatedPrice = Me.txtEstimatedPrice3
Capital = Me.txtCapital3
Expense = Me.txtExpense3
-> Offer = Offerte
PowerPointSlide = Slide
-> Photo = Foto
EEA = Me.txtEEA3
ROI = Me.txtROI3
ChangeDate = Date
ChangedBy = username
.Update
Rs.Close
Set Rs = Nothing
MsgBox ("Saved Application Form")
DoCmd.Close
DoCmd.OpenForm "blablabla", acNormal
End With
End Sub
If I put for every field (between edit and update) also a "!" like !Offer = Offerte. But when I do that I get a writing conflict : "When editting the record, this record is changed by another user.If the record will be saved, the changes of the other user will be lost.I have the possibility to save the record, copy it to the background or ignore the changes"
Offerte, Slide and Foto are public Strings and are declared in the database as hyperlink
So what do I do wrong ? Help needed !