Solved Link to specific ID in other form (1 Viewer)

Valient

Member
Local time
Today, 06:24
Joined
Jun 21, 2021
Messages
48
Good day to all,

I need assistance, being new to this environment hope someone will help. attached is sample DB for reference you can edit it direct here.

Here it goes:

I created "Base" & "Info" table and create their relationship.
Then created Form link to Base" & Info table.

The "Base Form is in continous format and I added a BTN.
The requirements is when I click the BTN, the specific ID link to it in "Info" will show up.

1632990926798.png


Thank you
 

Attachments

  • Database1.accdb
    608 KB · Views: 314

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:24
Joined
May 7, 2009
Messages
19,228
you connect it using ID from table Base and BaseID from table Info.
do not Connect on both ID (since both are Autonumber).
 

Attachments

  • Database1 (9).accdb
    672 KB · Views: 298

Valient

Member
Local time
Today, 06:24
Joined
Jun 21, 2021
Messages
48
you connect it using ID from table Base and BaseID from table Info.
do not Connect on both ID (since both are Autonumber).

Hi it works as per the attachment.
May I know where did you get the value "txtBaseID" that you put in the event?

"BaseID= " & Me.txtBaseID


I asked this because I transfer the coding to our database and it shows error and highlighting the "txtBaseID"

1633002480613.png
 
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:24
Joined
May 7, 2009
Messages
19,228
see the Base form in design view. there is a Yellow textbox there (visible=false).
that is txtBaseID whose ControlSource is BaseID.
 

Valient

Member
Local time
Today, 06:24
Joined
Jun 21, 2021
Messages
48
hi,

im sorry to open this topic again.

The attached DB is working really fine. As shown, up to letter D (Figure1), it display the specific ID.
But when it reached the letter E (Figure 2), all the values that I put from letter E to H does not display.. It always display as blank page.

Could you please help to check whats the issue?

Figure 1
1633030551667.png



Figure 2
1633030579225.png
 

Attachments

  • Database1 (9).accdb
    672 KB · Views: 194

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:24
Joined
May 7, 2009
Messages
19,228
because there are no corresponding record in Info table.
you need to add records to table Info first.
 

Attachments

  • Database1 (9) (1).accdb
    772 KB · Views: 313

Users who are viewing this thread

Top Bottom