G
Guest
Hi all,
I have a big problem in my form that's called "re-escalation",I open the
form in add mode to add a record,in my table that represents the record
source of this form i'm using an autonumber property field,before i open this
form,i open another one (called "escnew") to get some data on my form,the
problem is that when i open this form ,it's supposed to view a new number in
the field "code" that has its property set to autonumber,but actually i don't
get new number,i get repeated one !!!
Can anybody help??
Here's the command i use to open the form:
Private Sub Command201_Click()
DoCmd.OpenForm "Escnew", acNormal, , "
I have a big problem in my form that's called "re-escalation",I open the
form in add mode to add a record,in my table that represents the record
source of this form i'm using an autonumber property field,before i open this
form,i open another one (called "escnew") to get some data on my form,the
problem is that when i open this form ,it's supposed to view a new number in
the field "code" that has its property set to autonumber,but actually i don't
get new number,i get repeated one !!!
Can anybody help??
Here's the command i use to open the form:
Private Sub Command201_Click()
DoCmd.OpenForm "Escnew", acNormal, , "
Code:
=[forms]![PHcsq]![Code2]", ,
acHidden
DoCmd.OpenForm "Re-escalation", acNormal, , "", acFormAdd, , acWindowNormal
[forms]![Re-escalation]![Customer Name] = [forms]![Escnew]![Customer Name]
[forms]![Re-escalation]![Phone] = [forms]![Escnew]![Phone]
[forms]![Re-escalation]![Country] = [forms]![Escnew]![Country]
[forms]![Re-escalation]![e-mail] = [forms]![Escnew]![e-mail]
[forms]![Re-escalation]![URL] = [forms]![Escnew]![URL]
[forms]![Re-escalation]![Language] = [forms]![Escnew]![Language]
[forms]![Re-escalation]![Installation ID] = [forms]![Escnew]![Installation ID]
[forms]![Re-escalation]![Product Key] = [forms]![Escnew]![Product Key]
[forms]![Re-escalation]![PID] = [forms]![Escnew]![PID]
[forms]![Re-escalation]![Part number] = [forms]![Escnew]![Part number]
[forms]![Re-escalation]![Product Name] = [forms]![Escnew]![Product Name]
[forms]![Re-escalation]![Version] = [forms]![Escnew]![Version]
[forms]![Re-escalation]![Confirmation ID] = [forms]![Escnew]![Confirmation ID]
[forms]![Re-escalation]![Message] = [forms]![Escnew]![Message]
[forms]![Re-escalation]![Error message] = [forms]![Escnew]![Error message]
[forms]![Re-escalation]![Contract] = [forms]![Escnew]![Contract]
[forms]![Re-escalation]![Authorization number] =
[forms]![Escnew]![Authorization number]
[forms]![Re-escalation]![License number] = [forms]![Escnew]![License number]
[forms]![Re-escalation]![Enrolment number] = [forms]![Escnew]![Enrolment
number]
[forms]![Re-escalation]![Quantity] = [forms]![Escnew]![Quantity]
[forms]![Re-escalation]![Program ID] = [forms]![Escnew]![Program ID]
[forms]![Re-escalation]![SAP ID] = [forms]![Escnew]![SAP ID]
[forms]![Re-escalation]![ProductSPLA] = [forms]![Escnew]![ProductSPLA]
[forms]![Re-escalation]![Company] = [forms]![Escnew]![Company]
[forms]![Re-escalation]![Error message] = [forms]![Escnew]![Error message]
[forms]![Re-escalation]![Error message] = [forms]![Escnew]![Error message]
End Sub