Code Datatype problem...

rajpatelbca
Member Posts: 178
Hi Experts,
I have some strange problem. one of our client using space in customer code. eg. (REL TECH,WEB SOL). but actual problem occure when i used code like this one the codeunits :
as a result it cant found the records.
Thanks in advance..
Rajesh Patel
I have some strange problem. one of our client using space in customer code. eg. (REL TECH,WEB SOL). but actual problem occure when i used code like this one the codeunits :
CustRec.setrange(CustRec."No.",Mytable."Cust. Order No.");
if CustRec.Findfirst then
begin
.....
end;
as a result it cant found the records.
Thanks in advance..
Rajesh Patel
Experience Makes Man Perfect....
Rajesh Patel
Rajesh Patel
0
Comments
-
rajpatelbca wrote:Hi Experts,
I have some strange problem. one of our client using space in customer code. eg. (REL TECH,WEB SOL). but actual problem occure when i used code like this one the codeunits :CustRec.setrange(CustRec."No.",Mytable."Cust. Order No.");
if CustRec.Findfirst then
begin
.....
end;
as a result it cant found the records.
Thanks in advance..
Rajesh Patel
Do you mean Mytable."Cust. Order No." or some other field of MyTable?0 -
#-o ooh its same field having customer no.
CustRec.setrange(CustRec."No.",Mytable."Cust. No.");Experience Makes Man Perfect....
Rajesh Patel0 -
yeah i can see where eg. (REL TECH,WEB SOL) would be really weird order numbers.Experience Makes Man Perfect....0
-
Thanks for your quick reponse..
my client is using space in Customer No. eg.FRAG DIR
i have one table called mytable in which that Customer No. is available that table actually contain a customer order information. "Customer No." Field of this table having customer No. in mytable. when, i have written some code like this.
CustRec.Setrange(CustRec."No.",mytable."Customer No.")
if CustRec.findfirst then
....
but its can't find such kind of customer. ](*,)
ThanksExperience Makes Man Perfect....
Rajesh Patel0 -
Can you find anything with
CustRec.Setrange(CustRec."No.",'FRAG DIR')?NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
Savatage wrote:I don't think anyone can be perfect, better but not perfect0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions