> I have a form and I want one text box to be the same value as another
> text box, but with a .jpg extension tagged on.

I'm not understanding tagging a jpeg extension onto a texbox, but it 
should be as easy as a Rename?  Assuming there is an object of some sort 
inthe textbox, just rename it?

HTH


>
> I just don't know how to write the macro for it.
>
> Here is what I've tried so far, with no success.
>
> Sub frmNewProductEntry_AfterTextModified(Event as Object)
> 'Variable Definitions:
> Dim Form As Object
> Dim ImageName As String
> Dim ISBN as String
> Dim textboxISBN as Object
> Dim textboxImage as Object
>
> 'Form=ThisComponent
> 'Form=frmNewProductEntry
> Form=StarDesktop.CurrentComponent
> 'If Not Form.IsNew Then Exit Sub
>
> textboxISBN = Form.getByName("txtproducts_model")
> textboxImage = Form.getControl("txtproducts_model")
> ISBN=textboxISBN.TEXT
> ImageName=ISBN+".jpg"
> textboxImage.TEXT=ImageName
>
> End Sub
>
> It gives me a "Property or Method Not Found" error at the line:
> textboxISBN = Form.getByName("txtproducts_model")
>
> Any ideas?
>
> Keith





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to