Fetch Data from 2 different form?

Fetch Data from 2 different form?

Hi people,
I'm newbie to creator and deluge, I'm following forums and help center and creating a application for my business needs.

I have problem with fetch datas.
Let me explain the structure that I have create and ask questions

I have 3 different forms and;
First form called Courses, it has 3 different single line text fields to explain 3 features of course (1st one name, 2nd one group, 3rd one Semester)
And second form called Students; this form has student information and course information, this form has a lookup field which call data from courses with that 3 single line together. (1st text field-2nd text field-3rd text field)
And I want to make a sale form for each student for get paid. I want to fetch records from students form with name_surname;
I have a code which I found form support.

if (STUDENT[ID == input.name_surname].count()  >  0)
{
    temp  =  STUDENT  [ID == input.name_surname];
    input.Email = temp.Email;
    input.Telephone = temp.Telephone;
    input.Course = temp.Course.toString();
}

That code works quite fine But I have a big problem for course data. On live mode, Course line has only long number (124354542525...)