Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update from another form 1

Status
Not open for further replies.

primerov

Technical User
Aug 16, 2002
160
0
0
BG

Why i cannot update from another form? I have an update function called UpdateData that works otherwise,but not from another form.
Why is it so?
I am trying to update tables from the form F1.There i have the following code :

DoCmd.OpenForm " F2"
UpdateData


I have also applied the OnOpen function, and in my UpdateData function i also have the following condition:

Dim strDocName As String
strDocName = "F2"
If IsOpen(strDocName) = True Then
.....
end if

Obviously it is not enough.
Can somebody help me ?

The reason why i must use two forms is rather complicaed but i think it is not relevant to my question
 
Try including the UpdateData function in the Modules section and you should be able to call it from anywhere.

Can you post your UpdateData function?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top