Concatenate text and number

E

eric.nguyen312

Hi, I have a form named Invoice_frm used to create invoices. Our client
wants a duplicate form named Proforma_frm. The only difference between
the two is that the Proforma_frm adds a PF in front of the invoice
number (ex. PF8310). I've made a copy of the Invoice_frm and everything
works fine. I just dont know how to add the PF to the invoice number.
Can someone please help me?

Thanks!
 
E

eric.nguyen312

I forgot to mention that the data type for the invoice number is
numeric. Can you still add 'PF' in front of it?

Eric said:
Add an unbound control to the form with the control source
="PF"&[invouce Number]


Hi, I have a form named Invoice_frm used to create invoices. Our client
wants a duplicate form named Proforma_frm. The only difference between
the two is that the Proforma_frm adds a PF in front of the invoice
number (ex. PF8310). I've made a copy of the Invoice_frm and everything
works fine. I just dont know how to add the PF to the invoice number.
Can someone please help me?

Thanks!
 
M

missinglinq via AccessMonster.com

Maybe something like:

Private Sub Form_Current()
Me.InvoiceNo.Value = "PF" & Me.InvoiceNo.Value
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top