Rodrigo
Taí um exemplo.
Estude bem os código.
Bom estudo
Noob
Taí um exemplo.
Estude bem os código.
Bom estudo
Noob
Private Sub Comando4_Click()
Dim myform As String
myform = Me!Forms!frmPrincipal
DoCmd.OpenForm myform, acDesign, , , , acHidden
If Forms(Forms().Count - 1).Name = myform Then
Forms(Forms().Count - 1).Picture = Me.ListaImgs.Column(1)
End If
Me.FundoTela.Picture = Me.ListaImgs.Column(1)
End Sub
Private Sub Comando3_Click()
Dim myform
myform = Forms("frmPrincipal")
DoCmd.OpenForm myform, acDesign, , , , acDialog
If Forms(Forms().Count - 1).Name = myform Then
Forms(Forms().Count - 1).Picture = Me.Lista0.Column(0)
DoCmd.Close acForm, myform, acSaveYes
End If
Me!Forms("frmPrincipal").FundoTela.Picture = Me.Lista0.Column(0)
End Sub
[color=#ff0000]
Private Sub Comando3_Click()
DoCmd.OpenForm "frmPrincipal", acDesign, , , , acHidden
If Forms(Forms().Count - 1).Name = "frmPrincipal" Then
Forms(Forms().Count - 1).Picture = Me.Lista0.Column(0)
DoCmd.Close acForm, "frmprincipal", acSaveYes
End If
DoCmd.OpenForm "frmPrincipal", acNormal
Forms("frmPrincipal").Imagem86.Picture = Me.Lista0.Column(0)
DoCmd.Close acForm, "frmMudaImagem", acSaveYes
End Sub[/color]